Rosetta Problems

Push and Carry

https://atcoder.jp/contests/abc323/tasks/abc323_f