#include using namespace std; constexpr int mod = 998244353; int main(){ int64_t n; cin >> n; n >>= 1; int64_t ans = 1, mul = 6; while(n){ if(n & 1) (ans *= mul) %= mod; (mul *= mul) %= mod; n >>= 1; } cout << ans << endl; }