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