#include<bits/stdc++.h>
using namespace std;
int main(){
    int n,h;
    cin>>n;
	if (n%10==0){
		h=n*0.8;
	}
	else {
		h=n;
	}
	printf("%d",h);
}
/**************************************************************
	Problem: 1870
	User: xiaojingxuan
	Language: C++
	Result: Accepted
	Time:16 ms
	Memory:2072 kb
****************************************************************/