fork download
  1. import math
  2.  
  3. a=float(input())
  4. b=input()
  5.  
  6. if b=="Ceil":
  7. print(int(a))
  8. elif b=="Floor":
  9. print(math.floor(a))
Success #stdin #stdout 0.12s 14104KB
stdin
3.1
Floor
stdout
3