#17333: c++ 9行 AC


d10730416@gapps.fg.tp.edu.tw (Wendy Charng)


#include <iostream>
using namespace std;

int n;

int main() {
  cin >> n;
  cout << n % 12 * 5 + n / 12 * 50 << endl;
}