#include<bits/stdc++.h> using namespace std; int main() { int a; cin>>a; int con=0; while(a>=12) { a-=12; con+=1; } cout<<con*50+a*5; }