#include using namespace std; long long a, n; const long long M = 998244353; long long powm(long long a, long long b) { long long u = 1, v = a; while (b > 0) { if (b & 1) u = u * v % M; v = v * v % M; b >>= 1; } return u; } int main() { cin >> n; cout << M << endl << powm(20, powm(2, n)) << endl; }