#include <bits/stdc++.h>
using namespace std;
const int mod = 998244353;

int dp[6010];

int main() {
	int n, s; cin >> n >> s;
	dp[0] = 1;
	for (int i = 0; i < n; i++) {
		int x; cin >> x;
		for (int j = s; j >= 0; j--) {
			(dp[j + x] += dp[j]) %= mod;
			(dp[j] *= 2) %= mod;
		}
	}
	cout << dp[s] << "\n";
}