#include <iostream> using namespace std; int main() { int n,money; while(cin>>n) { if(n<=10){ money=5*n; cout<<money<<endl; } else{ money=n/12*50+n%12*5; cout<<money<<endl; } } return 0; }