#include int main (void){ int N; printf("%d\n",316+(N-1)*52); return 0; }