#include #include #include typedef uint8_t u8; typedef uint16_t u16; typedef uint32_t u32; typedef uint64_t u64; typedef int8_t s8; typedef int16_t s16; typedef int32_t s32; typedef int64_t s64; const int INF = (1 << 28); const long INFL = (1LL << 50); class FastIO { public: void flush() { fflush(stdin); fflush(stdout); } FastIO& operator >> (int &right) { if( scanf("%d", &right) == EOF ) { fprintf(stderr, "cannot scanf()."); exit(1); } return *this; } FastIO& operator >> (u64 &right) { if( scanf("%ld", &right) == EOF ) { fprintf(stderr, "cannot scanf()."); exit(1); } return *this; } FastIO& operator >> (u32 &right) { if( scanf("%d", &right) == EOF ) { fprintf(stderr, "cannot scanf()."); exit(1); } return *this; } FastIO& operator >> (double &right) { if( scanf("%lf", &right) == EOF ) { fprintf(stderr, "cannot scanf()."); exit(1); } return *this; } FastIO& operator >> (char &right) { if( scanf("%c", &right) == EOF ) { fprintf(stderr, "cannot scanf()."); exit(1); } return *this; } FastIO& operator >> (char right[]) { if( scanf("%s", right) == EOF ) { fprintf(stderr, "cannot scanf()."); exit(1); } return *this; } FastIO& operator << (const int& right) { printf("%d", right); return *this; } FastIO& operator << (int&& right) { printf("%d", right); return *this; } FastIO& operator << (const u32& right) { printf("%d", right); return *this; } FastIO& operator << (u32&& right) { printf("%d", right); return *this; } FastIO& operator << (const u64& right) { printf("%ld", right); return *this; } FastIO& operator << (u64&& right) { printf("%ld", right); return *this; } FastIO& operator << (const long& right) { printf("%ld", right); return *this; } FastIO& operator << (long&& right) { printf("%ld", right); return *this; } FastIO& operator << (const double& right) { printf("%.20lf", right); return *this; } FastIO& operator << (double&& right) { printf("%.20lf", right); return *this; } FastIO& operator << (const char right[]) { printf("%s", right); return *this; } FastIO& operator << (const char& right) { printf("%c", right); return *this; } FastIO& operator << (char&& right) { printf("%c", right); return *this; } }; FastIO io; class Solver { private: public: void solve() { u64 N; io >> N << 316 + (N - 1) * 52 << '\n'; } }; int main() { Solver solver; solver.solve(); return 0; }