project-python3/lesson2.2_13.py
2025-12-15 14:13:57 +05:00

12 lines
338 B
Python

'''****** Задание ********
*Властелин Чисел: Братство общей цифры.
'''
elves = int(input())
dwarfs = int(input())
humans = int(input())
if elves // 10 == dwarfs // 10 == humans // 10:
print(elves // 10)
elif elves % 10 == dwarfs % 10 == humans % 10:
print(elves % 10)
else:
print('NO')