while 1:a,b=raw_input().split('.');print int(a)+(b>="5")