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