import sys input = sys.stdin.readline T=input().strip() x=T.index("(") y=T.index(")") S=T[:x]+"@"+T[y+1:] print(S)