T = input().strip() left = T.find('(') right = T.rfind(')') S = T[:left] + '@' + T[right+1:] print(S)