>>191
https://atcoder.jp/contests/abc162/tasks/abc162_b