samson's submission of Arithmancy | CodeChef