Attempt the question at: https://open.kattis.com/problems/twostones