public class Main {
public static void main(String[] args) {
double x = 0.5;
Scanner sc = new Scanner(System.in);
double y = sc.nextDouble();
int m = (int)y; //得到整数部分相减与0.5比大小
if ((y-m)>=0.5){
System.out.println(m+1);
}else {
System.out.println(m);
}
}
}