Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = 0
- x = int(input())
- m = None
- if x % 2:
- m = x
- if x > 100:
- n += 1
- while x != 0:
- x = int(input())
- if x < 100:
- n += 1
- if x % 2 == 0:
- if x < m and x != 0:
- m = x
- if n > 0:
- print('YES', m)
- else:
- print('NO', m)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement