#include<iostream> int main(){ double a,b; scanf("%lf",&a); b=a*2.5; if(a>10) b=b+(a-10)*1.5; printf("%.1lf",b); return 0; }