import Control.Monad
import Control.Applicative
import Data.Functor
import Data.List
import Data.List.Split
import Data.Char

readInt = read :: String -> Int
getInt = readLn :: IO Int
getInts = map read . words <$> getLine :: IO [Int]
cond t f c = if c then t else f
-- end of templete



main = do
    n <- readLn
    replicateM_ n $ do
        a <- readLn
        b <- readLn
        let s = a + b
        let t = show s
        putStrLn $ if length t > 80 then "overflow" else t