fork download
  1. x = int(input())
  2.  
  3. if x < 4:
  4. y = 3 * x - 7
  5. elif x > 4:
  6. y = 5 * x * x
  7. else:
  8. y = x + 3
  9.  
  10. print(y)
  11.  
Success #stdin #stdout 0.02s 7284KB
stdin
6
stdout
180