#include int main() { int N; scanf("%d",&N); printf("%d",264+52*N); return 0; }