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