Rosetta Problems

Three Variables Game

https://atcoder.jp/contests/abc166/tasks/abc166_f