Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #i =45,67,107,151,89,121
- import math
- inp = input().split(',')
- inp = list(tuple(inp))
- a=[]
- inp = list(inp)
- for i in inp:
- if int(i) == 151:
- a.append(0)
- elif int(i) == 121 or int(i) == 107:
- a.append(2)
- else:
- a.append(1)
- print(sum(a))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement