Codeforces Contest: Good Bye 2014

500A - New Year Transportation