454A

codeforces problem 454A solution
code written in python 2.7