Codeforces div 3 problem E1

why my code is giving TLE
problem link-Problem - E1 - Codeforces
solution link-Submission #89089825 - Codeforces