#include <bits/stdc++.h>
using namespace std;
const int maxn = 2000000 + 5;
const int INF = 1000000000;
string s;
int main() {
  while (cin >> s) {
    int n = s.length();
    int tag = 0;
    for (int i = 0; i < n; i++) {
      if (s[i] == 'd' && i) {
        if (i + 1 < n && s[i + 1] == 'o') {
          if (i + 2 < n && s[i + 2] == 't' && i + 2 != n - 1) {
            cout << '.';
            i += 2;
            continue;
          }
        }
      }
      if (tag == 0 && s[i] == 'a' && i) {
        if (i + 1 < n && s[i + 1] == 't' && i + 1 != n - 1) {
          cout << '@';
          i++;
          tag = 1;
          continue;
        }
      }
      cout << s[i];
    }
    cout << endl;
  }
  return 0;
}
