#include using namespace std; int main() { double n; cin >> n; n--; double ans = 316 + n * 52; cout << ans; }