Problem Link: http://www.spoj.com/problems/GCJ1C09A/
I don't understand where I am going wrong.Any help?Thanks.
Edit: Just a small mistake.