s = input() i = s.index('(') j = s.index(')') a = s[:i] b = s[j+1:] print(a + "@" + b)