#include using namespace std; int main() { int n; cin >> n; if (n > 5) cout << n * 280; else cout << n * 300; return 0; }