local mod = 998244353 local mfl = math.floor local function bmul(x, y) local x0, y0 = x % 31596, y % 31596 local x1, y1 = mfl(x / 31596), mfl(y / 31596) return (x1 * y1 * 62863 + (x1 * y0 + x0 * y1) * 31596 + x0 * y0) % mod end local function badd(x, y) return (x + y) % mod end local function modpow(src, pow) local res = 1 while 0LL < pow do if pow % 2LL == 1LL then res = bmul(res, src) end src = bmul(src, src) pow = pow / 2LL end return res end local ffi = require("ffi") local C = ffi.C ffi.cdef[[ long long atoll(const char*); ]] local function lltonumber(str) return C.atoll(str) end a = lltonumber(io.read()) a = a / 2LL print(modpow(6, a))