{-# LANGUAGE PartialTypeSignatures #-}
module Main (main) where

import Control.Monad
import qualified Data.ByteString.Char8 as C8
import qualified Data.Char as C
import qualified Data.List as L

main :: IO ()
main = do
  [d] <- readInts
  cs <- readInts
  replicateM d readInts >>= output d . solve

solve :: [[Int]] -> _
solve xs = xs

output :: Int -> _ -> IO ()
output d _ = mapM_ print $ take d [1..26]

-- utils
readInts :: IO [Int]
readInts = L.unfoldr (C8.readInt . C8.dropWhile C.isSpace) <$> C8.getLine