Comments
The comment removed because of Codeforces rules violation
+1

how to solve B ? what are the first and second digit for in output ?