fork download
  1. n = 10
  2. a = [0] * n
  3. for i in range(n):
  4. a[i] = int(input())
  5.  
  6. s = 0
  7. for v in a:
  8. if v < 50:
  9. s += v
  10.  
  11. if s % 2 == 0:
  12. print("+")
  13. else:
  14. print("-")
Success #stdin #stdout 0.02s 7156KB
stdin
1
2
3
4
44
35
207
27
55
50
stdout
+