import java.util.Scanner;
public class Main{
public static void main(String agrs[]){
Scanner in = new Scanner(System.in);
//System.out.println("输入一个正浮点数值");
float f = in.nextFloat();
int i = 0;
if((f*10%10)<5){
i=(int)(f);
}else{
//i=(int)(f+1);
i=(int)(f)+1;
}
System.out.println(i);
}
}