solved first two problems of codechef march14