import Control.Monad main :: IO () main = do i <- readLn :: IO Int n <- replicateM i readLn mapM_ kitty n kitty :: Int -> IO () kitty n | n `mod` 40 == 0 = putStrLn "ikisugi" | n `mod` 10 == 0 = putStrLn "sugi" | n `mod` 8 == 0 = putStrLn "iki" | n `mod` 3 == 0 = print $ n `div` 3 | otherwise = undefined