import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int x = n % 10; //个位数
        if (x > 4) {
            n = n + (10 - x);
        } else if (x <= 4 && x > 0){
            n = n - x;
        }
        System.out.println(n);
        
    }   
}