import java.util.Scanner;
public class approximation {
public static void main(String[] args) {
Scanner cin = new Scanner(System.in);
while(cin.hasNext()){
double d = cin.nextDouble();
int a =(int)d;//向下取整
if(d-a>=0.5){
System.out.println(a+1);
}else{
System.out.println(a);
}
}
}
}
public class approximation {
public static void main(String[] args) {
Scanner cin = new Scanner(System.in);
while(cin.hasNext()){
double d = cin.nextDouble();
int a =(int)d;//向下取整
if(d-a>=0.5){
System.out.println(a+1);
}else{
System.out.println(a);
}
}
}
}