import java.util.Scanner;

/**
 * HJ7 取近似值
 */
public class HJ007 {

    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        double d = sc.nextDouble();
        System.out.println((int)Math.round(d));
        sc.close();
    }

}