#include <iostream>
#include <iomanip>
using namespace std;
main()
{
int n;
cin>>n;
int a=n/12;
int b=n%12;
int m=(50*a)+(5*b);
cout<<m<<endl;
}