main = do
  n <- getLine
  c <- getContents
  let n' = read n :: Int
      i  = lines c
      o  = map ans i
  mapM_ putStrLn o
main = do
  n <- getLine
  c <- getContents
  let n' = read n :: Int
      i  = lines c
      o  = map ans i
  mapM_ putStrLn o
main = do
  n <- getLine
  c <- getContents
  let n' = read n :: Int
      i  = lines c
      o  = map ans i
  mapM_ putStrLn o