https://onlinemathcontest.com/contests/omce017/tasks/13161
poe38はこれを通せたんだふーん
全探索余裕だが通せたんだふーん