#include "stdio.h" int main() { //第何版か入力 int N=0; scanf("%d",&N); //何ページか出力 printf("%lld\n",(long long int)(264 + N*52) ); return 0; }