solve :: [Integer] -> [String]
solve [] = []
solve (a:b:xs)
  | (length . show) (a + b) > 80 = "overflow" : solve xs
  | otherwise =	show (a + b) : solve xs

main = getContents >>= mapM_ putStrLn . solve . map read . tail . lines