Advertisement
Egor_1425

Untitled

Jul 17th, 2024
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. k1, k2, k3 = map(int, input().split())
  2. if k1 == 1 or k2 == 1 or k3 == 1:
  3.     print('yes')
  4. elif k1 == k2 == 2 or k1 == k3 == 2 or k2 == k3 == 2:
  5.     print('yes')
  6. elif k1 == k2 == k3 == 3:
  7.     print('yes')
  8. elif (k1 == k2 == 4 and k3 == 2) or (k1 == k3 == 4 and k2 == 2) or (k2 == k3 == 4 and k1 == 2):
  9.     print('yes')
  10. else:
  11.     print('no')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement