https://open.kattis.com/contests/kqsomu