#include<iostream>
using namespace std;
int main()
{
int n;
cin<<n;
cout (n/12) * 50 + (n%12)*5<<endl;
return 0;
}
#include
請勿在此公佈作答參考!!!