class Main{ public static void main(String[] args)throws java.io.IOException{ int c; while((c=System.in.read())!='\n'){ if(c=='('){ while(c!=')') c = System.in.read(); c = '@'; } System.out.print((char)c); } System.out.println(); } }