print "Enter a number ('Q' to quit):\n";