#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; long long sum = 0; int main() { long long n, k; cin >> n >> k; for (int i = 0; i < n; i++) { long long a; cin >> a; sum += a; sum %= 998244353; } long long x = n * 2; long long y = k; long long ans = 1; while (y > 0) { if ((y & 1) == 1) { ans = ans * x % 998244353; } x = x * x % 998244353; y >>= 1; } x = n; y = k; long long ans1 = 1; while (y > 0) { if ((y & 1) == 1) { ans1 = ans1 * x % 998244353; } x = x * x % 998244353; y >>= 1; } x = ans1; y = 998244351; long long ans2 = 1; while (y > 0) { if ((y & 1) == 1) { ans2 = ans2 * x % 998244353; } x = x * x % 998244353; y >>= 1; } sum *= ans; sum %= 998244353; sum *= ans2; sum %= 998244353; cout << sum << endl; }