(import (scheme base) (scheme read) (scheme write) (gauche base) (srfi 94) ) (define yuki2752 (let* ( (alpha 26) (ratio 26) (mod998-const 998244353) (mod998-inverse (expt-mod (- alpha 1) (- mod998-const 2) mod998-const)) (mod998 (lambda (x) (modulo x mod998-const))) (solver (lambda (x) (mod998 (* (mod998 (* alpha (- (expt-mod ratio x mod998-const) 1))) mod998-inverse))))) (let* ((n (read))) (do ((i 1 (+ i 1))) ((> i n) ) (begin (write (solver (read))) (display "\n"))))))