use std::io::Read; fn main() { let mut s = String::new(); std::io::stdin().read_to_string(&mut s).ok(); let n: Vec = s.split_whitespace().skip(1).flat_map(str::parse).collect(); let mut p = vec![2u64; 101]; for i in 0..100 { p[i + 1] = p[i] * 3 % 998244353; } for i in n { println!("{}", p[i - 1]) } }