Rosetta Problems

サンドイッチ

https://atcoder.jp/contests/joisc2016/tasks/joisc2016_e