fork download
  1. a, b, c = input().split()
  2.  
  3. if b == '+':
  4. print(int(a) + int(c))
  5. elif b == '-':
  6. print(int(a) - int(c))
  7. elif b == '*':
  8. print(int(a) * int(c))
  9. elif b == '/':
  10. print(int(a) / int(c))
  11.  
Success #stdin #stdout 0.1s 14108KB
stdin
7 + 9
stdout
16