//c++
#include <iostream>
using namespace std;
signed main() {
int x;
cin >> x;
if (x > 10)
x *= 5;
else
x -= 10;
cout << x;
return 0;
}
//c++
#include <iostream>
using namespace std;
signed main() {
int x;
cin >> x;
if (x > 10)
x *= 5;
else
x -= 10;
cout << x;
return 0;
}