#34904: __AC


yp11151209@yphs.tp.edu.tw (802-41)


#include <iostream>

using namespace std;

int main ()

{

int n;

cin >> n;

cout << (n/12) * 50 + (n % 12) * 5 << endl;

return 0;

}