#include <iostream>using namespace std;
int main(int argc, char** argv) { int n,a=1,d=12,i1,i2,t; cin>>n; i1=n%d; i2=(n-i1)/d; t=i1*5+i2*50; cout<<t<<endl; return 0;}