#include using namespace std; int main(){long N;cin >> N;cout << 264+52*N << endl;return 0;}