TLE for TAPALIN Practice(Easy)

http://www.codechef.com/viewsolution/4275124 - here is the link to my submission.

Where else can i modify to reduce time? Thanks :slight_smile:

//