Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- kc = 0
- kn = 0
- k = 0
- while 1:
- if k >= 5:
- if kc == (kn+3):
- break
- x = int(input())
- k += 1
- if x % 2 == 0:
- kc += 1
- if x % 2 == 1:
- kn += 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement