Rosetta Problems

Manhattan Cafe

https://atcoder.jp/contests/abc265/tasks/abc265_f