import qualified Control.Monad as M

main :: IO ()
main = do
  l <- readLn
  M.forM_ [1..l] $ \n -> do
    a <- readLn
    b <- readLn
    let x = a + b
    if length (show x) > 80
       then putStrLn "overflow"
       else print x