Python command line version of the maths round from Countdown