import math
a=float(input())
b=input()
if b=="Ceil":
print(int(a))
elif b=="Floor":
print(math.floor(a))
aW1wb3J0IG1hdGgKCmE9ZmxvYXQoaW5wdXQoKSkKYj1pbnB1dCgpCgppZiBiPT0iQ2VpbCI6CiAgICBwcmludChpbnQoYSkpCmVsaWYgYj09IkZsb29yIjoKICAgIHByaW50KG1hdGguZmxvb3IoYSkp