solve s = takeWhile (/= '(') s ++ ['@'] ++ (tail . dropWhile (/= ')')) s main = getLine >>= putStrLn . solve