Editorial
Problem Author: | Oleksandr Tymkovych |
Editorial by: | Oleksandr Tymkovych |
For notice that , which means that after two operations hasn't changed. In such case, the answer is
For we may reduce the problem by subtracting from a fixed number of times.