main(double n){scanf("%lf",&n);n>2?n=n*5-12:n;printf("%.f",n);}