|
| 1 | +import sys |
| 2 | +import math |
| 3 | + |
| 4 | +good = {"high", "great", "good", "easy", "worth", "cheap", "convenient" ,"fun", "cost-effective", "like", "ok", "fresh", "value", ""} |
| 5 | +bad = {"expensive", "inconvenient", "never", "bad", "poor"} |
| 6 | +notWord = {"nothing", "don't", "not", "too"} |
| 7 | + |
| 8 | +words = sys.stdin.readline().strip().lower().split(" ") |
| 9 | +goodC = 0 |
| 10 | +badC = 0 |
| 11 | +notW = False |
| 12 | +for word in words: |
| 13 | + if word in good: |
| 14 | + goodC += 1 |
| 15 | + if word in bad: |
| 16 | + badC += 1 |
| 17 | + if word in notWord: |
| 18 | + notW = True |
| 19 | + |
| 20 | +print(int(not notW and goodC > badC)) |
0 commit comments