package huaweiTest;

import java.util.Scanner;

public class _0713_7取近似值 {
public static void main(String[] args) {
Scanner sc =new Scanner(System.in);
String sb = sc.nextLine();
String[] strArray = sb.split("\.");
Integer m = Integer.parseInt(strArray[0]);
String single = strArray[1].substring(0,1);
Integer n = Integer.parseInt(single);
if(n>=5) System.out.println( m+1);
if(n<5) System.out.println( m);

}
}