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