codeforces good bye 2013, bug in D
codeforces good bye 2013, fix bug in D - long long issues and small bug for n = 1