Andrey Kim's submission of Play with numbers | CodeChef