#include<bits/stdc++.h> using namespace std; int main () { int n; cin>>n; if(n<=10)cout<<n*2; else{ float a=n*0.9; printf("%.1lf",a); return 0; }