#include <bits/stdc++.h>
using namespace std;
int main() {
  string ch;
  cin >> ch;
  string c = "";
  c += ch[0];
  int b = 0;
  for (int i = 1; i < ch.length() - 1; i++) {
    string a = "???";
    a[0] = ch[i];
    a[1] = ch[i + 1];
    a[2] = ch[i + 2];
    if (a == "dot" && i < ch.length() - 3) {
      c += ".";
      i += 2;
      continue;
    }
    string e = "??";
    e[0] = ch[i];
    e[1] = ch[i + 1];
    if (e == "at" && b == 0) {
      b = 1;
      c += "@";
      i += 1;
      continue;
    }
    c += ch[i];
  }
  c += ch[ch.length() - 1];
  cout << c;
}
