Problem: Sometimes one has to spell email addresses over the phone. Then one usually pronounces a dot as dot, an at sign as at. As a result, we get something like vasyaatgmaildotcom. Your task is to transform it into a proper email address (vasya@gmail.com). 

It is known that a proper email address contains only such symbols as . @ and lower-case Latin letters, doesn't start with and doesn't end with a dot. Also, a proper email address doesn't start with and doesn't end with an at sign. Moreover, an email address contains exactly one such symbol as @, yet may contain any number (possible, zero) of dots. 

You have to carry out a series of replacements so that the length of the result was as short as possible and it was a proper email address. If the lengths are equal, you should print the lexicographically minimal result. 

Overall, two variants of replacement are possible: dot can be replaced by a dot, at can be replaced by an at. 

Input

The first line contains the email address description. It is guaranteed that that is a proper email address with all the dots replaced by dot an the at signs replaced by at. The line is not empty and its length does not exceed 100 symbols.

Output

Print the shortest email address, from which the given line could be made by the described above replacements. If there are several solutions to that problem, print the lexicographically minimal one (the lexicographical comparison of the lines are implemented with an operator < in modern programming languages).

In the ASCII table the symbols go in this order: . @ ab...z

Examples

Input

vasyaatgmaildotcom


Output

vasya@gmail.com


Input

dotdotdotatdotdotat


Output

dot..@..at


Input

aatt


Output

a@t

Solution (in JAVA):

Solution:
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.math.BigInteger;
import java.util.Scanner;
import java.util.StringTokenizer;

public class Main {

	/**
	 * @param args
	 * @throws IOException
	 */
	public static void main(String[] args) throws IOException {
		FastScanner sc = new FastScanner(System.in);
		String st = sc.nextLine();
		st=st.toLowerCase();
		boolean at = false;
		for(int i = 1;i<st.length()-2;i++){
			if(st.charAt(i)=='a'&&st.charAt(i+1)=='t'&&!at){
				st = st.substring(0, i)+"@"+st.substring(i+2,st.length());
				at=true;
			}
			if(i!=st.length()-3&&st.charAt(i)=='d'&&st.charAt(i+1)=='o'&&st.charAt(i+2)=='t'){
				st = st.substring(0, i)+"."+st.substring(i+3,st.length());
			}
		}
		System.out.println(st);
        
	}

	
	 public static int charToInt(char a) { if (a == 'a') return 1; if (a ==
	 'b') return 2; if (a == 'c') return 3; if (a == 'd') return 4; if (a ==
	 'e') return 5; if (a == 'f') return 6; if (a == 'g') return 7; if (a ==
	 'h') return 8; if (a == 'i') return 9; if (a == 'j') return 10; if (a ==
	 'k') return 11; if (a == 'l') return 12; if (a == 'm') return 13; if (a
	 == 'n') return 14; if (a == 'o') return 15; if (a == 'p') return 16; if
	 (a == 'q') return 17; if (a == 'r') return 18; if (a == 's') return 19;
	 if (a == 't') return 20; if (a == 'u') return 21; if (a == 'v') return
	 22; if (a == 'w') return 23; if (a == 'x') return 24; if (a == 'y')
	 return 25; if (a == 'z') return 26; if (a == 'A') return 101; if (a ==
	 'B') return 102; if (a == 'C') return 103; if (a == 'D') return 104; if
	 (a == 'E') return 105; if (a == 'F') return 106; if (a == 'G') return
	 107; if (a == 'H') return 108; if (a == 'I') return 109; if (a == 'J')
	 return 110; if (a == 'K') return 111; if (a == 'L') return 112; if (a ==
	 'M') return 113; if (a == 'N') return 114; if (a == 'O') return 115; if
	 (a == 'P') return 116; if (a == 'Q') return 117; if (a == 'R') return
	 118; if (a == 'S') return 119; if (a == 'T') return 120; if (a == 'U')
	 return 121; if (a == 'V') return 122; if (a == 'W') return 123; if (a ==
	 'X') return 124; if (a == 'Y') return 125; else return 126; }
}

class FastScanner {
	BufferedReader br;
	StringTokenizer stok;

	FastScanner(InputStream is) {
		br = new BufferedReader(new InputStreamReader(is));
	}

	String nextToken() throws IOException {
		while (stok == null || !stok.hasMoreTokens()) {
			String s = br.readLine();
			if (s == null) {
				return null;
			}
			stok = new StringTokenizer(s);
		}
		return stok.nextToken();
	}

	int nextInt() throws IOException {
		return Integer.parseInt(nextToken());
	}

	long nextLong() throws IOException {
		return Long.parseLong(nextToken());
	}

	double nextDouble() throws IOException {
		return Double.parseDouble(nextToken());
	}

	char nextChar() throws IOException {
		return (char) (br.read());
	}

	String nextLine() throws IOException {
		return br.readLine();
	}
}