#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define rep(x, s, t) for(llint (x) = (s); (x) <= (t); (x)++) #define chmin(x, y) (x) = min((x), (y)) #define chmax(x, y) (x) = max((x), (y)) #define all(x) (x).begin(),(x).end() #define inf 1e18 #define mod 998244353 using namespace std; typedef long long llint; typedef pair P; llint n; llint a[1<<18]; llint p[1<<18]; llint A[1<<18], B[1<<18]; void zeta_transform(llint a[], int n) { int S = 1<> n; llint N = 1<> a[i], sum += a[i], sum %= mod; sum = modpow(sum, mod-2); rep(i, 0, N-1) p[i] = a[i] * sum % mod; rep(i, 0, N-1) A[i] = B[i] = p[i]; zeta_transform(A, n), zeta_transform2(B, n); llint ans = 0; rep(i, 0, N-1){ llint pop = 0; rep(j, 0, n-1) if(i & (1<