#include int main(void) { int n; scanf("%d",&n); int t=316; while(n>1){ t=t+52; } printf("%d",t); return 0; }