#include <bits/stdc++.h>
using namespace std;
const double eps = 1e-7;
const double PI = 2 * acos(0.0);
using namespace std;
int main() {
  string a, b;
  cin >> a;
  bool flag = true;
  for (int i = 0; i < a.length(); i++)
    if (a.substr(i, 3) == "dot") {
      b += '.';
      i += 2;
    } else if (i != 0 && flag && a.substr(i, 2) == "at") {
      flag = false;
      b += '@';
      i++;
    } else
      b.push_back(a[i]);
  if (b[0] == '.') b = "dot" + b.substr(1);
  if (b[0] == '@') b = "at" + b.substr(1);
  if (b[b.length() - 1] == '.') {
    b.resize(b.length() - 1);
    b += "dot";
  }
  if (b[b.length() - 1] == '@') {
    b.resize(b.length() - 1);
    b += "at";
  }
  cout << b << endl;
  return 0;
}
