codeforces: solution to prob #382-A

Signed-off-by: Rohit Yadav <bhaisaab@baagi.org>