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