Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- openedFiles = open("INPUT.txt")
- openedFile = openedFiles.read()
- a = 0
- b = 0
- c = 0
- d = 0
- g = 0
- if openedFile.split(" ")[0] == 1:
- a = 2
- print(a)
- else:
- a = 0
- if openedFile.split(" ")[1] == 1:
- b = 1
- print(b)
- else:
- b = 0
- if openedFile.split(" ")[2] == 1:
- c = 1
- print(c)
- else:
- c = 0
- if openedFile.split(" ")[3] == 1:
- d = 1
- print(d)
- else:
- d = 0
- g = a + b + c + d
- print(g)
- if g > 2:
- print('YES')
- else:
- print('NO')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement