def Main(): s=input() mae=s.find("(") ato=s.find(")") print(s[:mae]+"@"+s[ato+1:]) Main()