Rosetta Problems

1<->k

https://atcoder.jp/contests/tkppc6-1/tasks/tkppc6_1_i