#No.2041 E-mail Address S = input() l = S.index("(") r = S.index(")") print(S[:l] + "@" + S[r + 1:])