(define ncases (read))
(define (sum-nums n)
(if (zero? n) 0
(+ (read) (sum-nums (- n 1)))))
(define (loop n)
(if (zero? n) '()
(begin (let* ((ssize (read)) (ssum (sum-nums ssize)))
(display (quotient ssum ssize)) (newline))
(loop (- n 1)))))
(loop ncases)
CihkZWZpbmUgbmNhc2VzIChyZWFkKSkKCihkZWZpbmUgKHN1bS1udW1zIG4pCiAgKGlmICh6ZXJvPyBuKSAwCiAgICAgICgrIChyZWFkKSAoc3VtLW51bXMgKC0gbiAxKSkpKSkKCihkZWZpbmUgKGxvb3AgbikKICAoaWYgKHplcm8/IG4pICcoKQogICAgICAoYmVnaW4gKGxldCogKChzc2l6ZSAocmVhZCkpIChzc3VtIChzdW0tbnVtcyBzc2l6ZSkpKQogICAgICAgICAgICAgICAoZGlzcGxheSAocXVvdGllbnQgc3N1bSBzc2l6ZSkpIChuZXdsaW5lKSkKICAgICAgICAgICAgKGxvb3AgKC0gbiAxKSkpKSkKCihsb29wIG5jYXNlcykK