#include<iostream> int main(){ double a,b; scanf("%d",&a); b=a*2; if(a>=10){ b=b*0.9; } printf("%d",b); return 0; }