#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  long long int flag = 0;
  cout << s[0];
  for (long long int i = 1; i < s.size(); i++) {
    if (s[i] == 'd' && s[i + 1] == 'o' && s[i + 2] == 't' &&
        i + 2 != s.size() - 1) {
      cout << ".";
      i += 2;
    } else if (s[i] == 'a' && s[i + 1] == 't' && i + 1 != s.size() - 1 &&
               flag == 0) {
      cout << "@";
      i++;
      flag = 1;
    } else
      cout << s[i];
  }
}
