#include int main() { unsigned long long number = 0; scanf("%llu", &number); printf("%llu", (number - 1) * 52 + 316); return 0; }