#include <bits/stdc++.h>
using namespace std;
using vvi = vector<vector<int> >;
const long long MOD = 1e9 + 7, INF = 1e18;
void IO() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
}
long long power(long long n, int p) {
  if (p == 0) {
    return 1;
  }
  if (!(1 & p)) {
    return power(n * n, p / 2);
  } else {
    return n * power(n * n, p / 2);
  }
}
int main() {
  IO();
  int t = 1;
  while (t--) {
    string s;
    cin >> s;
    int n = s.size();
    int dot = 0;
    int at = 0;
    for (int i = 0; i < n; i++) {
      if (s[i] == 'd' && s[i + 1] == 'o' && s[i + 2] == 't') {
        if (i == 0 || i + 2 == n - 1) {
          cout << "dot";
        } else {
          cout << '.';
        }
        dot++;
        i += 2;
      } else if (s[i] == 'a' && s[i + 1] == 't') {
        if (at != 0 || i == 0) {
          cout << "at";
        } else {
          cout << '@';
          at++;
        }
        i += 1;
      } else {
        cout << s[i];
      }
    }
    cout << '\n';
  }
  return 0;
}
