import Control.Monad main = do i <- readLn :: IO Int ns <- replicateM i getLine mapM (putStrLn . conv . read) ns conv :: Int -> String conv x | x `mod` (lcm 8 10) == 0 = "ikisugi" | x `mod` 8 == 0 = "iki" | x `mod` 10 == 0 = "sugi" | otherwise = show $ x `div` 3