Scanf.scanf "%d %d" (fun n s ->
    let a = Array.init n (fun _ -> Scanf.scanf " %d" (fun a -> a)) in

    let m = 998244353 in
    let ( +@) a b = (a + b) mod m in

    let rec loop i dp =
        if i = n then dp.(s) else (
            let ndp = Array.map (fun a -> a +@ a) dp in
            let c = a.(i) in
            for j = 0 to s - c do
                ndp.(j + c) <- ndp.(j + c) +@ dp.(j)
            done;
            loop (i + 1) ndp
        )
    in
    let dp = Array.make (s + 1) 0 in
    let () = dp.(0) <- 1 in
    loop 0 dp |> Printf.printf "%d\n"
)