#include int main(void){ long long int N,page=316; scanf("%lld",&N); page += (N-1)*52; printf("%lld",page); return 0; }