from random import shuffle

questions = [ [i,j] for i in range(1,10) for j in range(1,10) ]
shuffle(questions)

false_answers = []

for q in questions:
   answer = raw_input('%dx%d = ' % tuple(q))

   if int(answer) == q[0]*q[1]:
      print 'correct'
   else:
      print 'incorrect'
      false_answers.append(q)

print 'You have answered all questions!'
