igorich1376

task1

Nov 1st, 2024 (edited)
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. a = int(input())
  2. a1 = a // 100000
  3. a2 = a // 10000 % 10
  4. a3 = a // 1000 % 10
  5. a4 = a // 100 % 10
  6. a5 = a // 10 % 10
  7. a6 = a % 10
  8. if ((a1+a2+a3) == (a4+a5+a6)):
  9.     print('Счастливый')
  10. else:
  11.     print('Обычный')
Advertisement
Add Comment
Please, Sign In to add comment