import os
from threading import Timer
def exit_program():
print('Я мухожук...')
os._exit(0)
while True:
t = Timer(10.0, exit_program)
t.start()
pas_1 = input()
pas_2 = input()
if len(pas_1) < 8:
print('Короткий!')
elif '123' in pas_1:
print('Простой!')
elif pas_1 != pas_2:
print('Различаются.')
else:
print('OK')
t.cancel()