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