#include <bits/stdc++.h>
using namespace std;
const int BUFFSIZE = 10240;
char BUFF[BUFFSIZE + 1], *ppp = BUFF;
int RR, CHAR, SIGN, BYTES = 0;
int t, n, q, a, b;
char cad[100000];
int main() {
  cin >> cad;
  int si = strlen(cad);
  bool ok = 1;
  for (int i = 0; i < si; i++) {
    if (i) {
      if (cad[i] == 'd' && cad[i + 1] == 'o' && cad[i + 2] == 't' &&
          i + 2 != si - 1) {
        printf(".");
        i += 2;
      } else if (cad[i] == 'a' && cad[i + 1] == 't' && ok && i + 1 != si - 1) {
        printf("@");
        ok = 0;
        i++;
      } else
        printf("%c", cad[i]);
    } else
      printf("%c", cad[i]);
  }
  return 0;
}
