Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- s1,s2,s3 = 0,0,0
- estimation = [None] * 18
- for i in range(18):
- estimation[i] = int(input())
- if i < 6:
- s1 += estimation[i]
- elif i >= 6 and i < 12:
- s2 += estimation[i]
- else:
- s3 += estimation[i]
- if s2 > s1 and s2 > s3:
- print(2)
- if s3 > s1 and s3 > s2:
- print(3)
- if s1 > s2 and s1 > s3:
- print(1)
- if s1 == s2 and s2 == s3:
- print(' ',123)
Advertisement
Add Comment
Please, Sign In to add comment