The version that got 12 on Kattis