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