#include <bits/stdc++.h>
using namespace std;
template <typename T>
struct Point {
  T x, y;
  Point() {}
  Point(T xx, T yy) : x(xx), y(yy) {}
};
template <typename T>
bool operator<(const Point<T> &p1, const Point<T> &p2) {
  return p1.x < p2.x || p1.x == p2.x && p1.y < p2.y;
}
template <typename T>
Point<T> operator-(const Point<T> &p1, const Point<T> &p2) {
  return Point<T>(p1.x - p2.x, p1.y - p2.y);
}
template <typename T>
Point<T> operator+(const Point<T> &p1, const Point<T> &p2) {
  return Point<T>(p1.x + p2.x, p1.y + p2.y);
}
template <typename T>
T operator^(const Point<T> &p1, const Point<T> &p2) {
  return p1.x * p2.y - p2.x * p1.y;
}
int main() {
  string s, res = "";
  cin >> s;
  int len = s.size();
  for (int i = 1; i < len - 3;) {
    if (s[i] == 'd' && s[i + 1] == 'o' && s[i + 2] == 't') {
      res += s.substr(0, i) + ".";
      s = s.substr(i + 3, s.length() - i - 3);
      len = s.size();
      i = 0;
    } else
      i++;
  }
  s = res + s;
  for (int i = 1; i < s.size() - 2; i++) {
    if (s[i] == 'a' && s[i + 1] == 't') {
      s = s.substr(0, i) + "@" + s.substr(i + 2, s.length() - i - 2);
      break;
    }
  }
  cout << s;
  return 0;
}
