key=int(input()) if key==3: print('Дверь открыта') elif key<3: print(3-key,'Не хватает ключей') else:print(key-3,'Лишние ключи')