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