#include <bits/stdc++.h>
using namespace std;
int comp(const int *i, const int *j) { return *i - *j; }
int upp(int a, int b) { return a < b; }
int main() {
  string s;
  int l;
  cin >> s;
  string beg = "", end = "";
  string dot = "dot";
  string at = "at";
  int dotPos;
  int atPos;
  bool fl = true, f1 = true;
  while ((dotPos = s.find(dot)) != -1) {
    l = s.length();
    if (dotPos == 0 && fl) {
      s.erase(dotPos, 3);
      beg = "dot";
      fl = false;
    } else {
      if (dotPos == l - 3 && f1) {
        end = "dot";
        s.erase(dotPos, 3);
        f1 = false;
      } else {
        s.erase(dotPos, 3);
        s.insert(dotPos, ".");
      }
    }
  }
  fl = true;
  f1 = true;
  int k = 1;
  while ((atPos = s.find(at)) != -1) {
    l = s.length();
    if (atPos == 0 && fl) {
      if (beg != "dot") {
        beg = "at";
        s.erase(atPos, 2);
      }
      fl = false;
    } else {
      if (atPos == l - 2 && f1) {
        if (end != "dot") {
          end = "at";
          s.erase(atPos, 2);
        }
        f1 = false;
      } else {
        if (k == 1) {
          s.erase(atPos, 2);
          s.insert(atPos, "@");
          k++;
        } else {
          break;
        }
      }
    }
  }
  cout << beg << s << end;
  return 0;
}
