import random
m = 1
while m != 0:
n1 = int(random.random() * 9) + 1
n2 = int(random.random() * 9) + 1
m = int(raw_input("{} * {} = ".format(n1, n2)))
print ("correto!" if m == n1 * n2 else "errado!!")
#https://pt.stackoverflow.com/q/259931/101
aW1wb3J0IHJhbmRvbQptID0gMQp3aGlsZSBtICE9IDA6CiAgICBuMSA9IGludChyYW5kb20ucmFuZG9tKCkgKiA5KSArIDEKICAgIG4yID0gaW50KHJhbmRvbS5yYW5kb20oKSAqIDkpICsgMQogICAgbSA9IGludChyYXdfaW5wdXQoInt9ICoge30gPSAiLmZvcm1hdChuMSwgbjIpKSkKICAgIHByaW50ICgiY29ycmV0byEiIGlmIG0gPT0gbjEgKiBuMiBlbHNlICJlcnJhZG8hISIpCiAgICAKI2h0dHBzOi8vcHQuc3RhY2tvdmVyZmxvdy5jb20vcS8yNTk5MzEvMTAx