Код на Python:
n = int(input())
c1 = n//100
c2 = n//10%10
c3 = n%10
if n<100 or n>999:
print('FALSE')
elif n<1000 and n>99:
if c1+c2+c3 == 13:
print('ENTER')
else:
print('LOCK')
Код на Python:
n = int(input())
c1 = n//100
c2 = n//10%10
c3 = n%10
if n<100 or n>999:
print('FALSE')
elif n<1000 and n>99:
c1 = n//100
c2 = n//10%10
c3 = n%10
if c1+c2+c3 == 13:
print('ENTER')
else:
print('LOCK')