#include int main(void) { unsigned long int n; unsigned long int pages; scanf("%d",&n); pages=316+52*(n-1); printf("%lu\n",pages); return 0; }