Rosetta Problems

Fork in the Road

https://atcoder.jp/contests/abc144/tasks/abc144_f