#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int cnt = 0;
  string s;
  cin >> s;
  long long int len = s.length();
  for (int i = 1; i < len; i++) {
    if (s[i] == 'd' && s[i + 1] == 'o' && s[i + 2] == 't') {
      if (s[i + 3] != '\0') {
        string s1 = ".";
        s.replace(i, 3, s1);
      }
    } else if (cnt == 0 && i != len - 2 && s[i] == 'a' && s[i + 1] == 't') {
      if (s[i + 2] != '\0') {
        string s2 = "@";
        s.replace(i, 2, s2);
        cnt++;
      }
    }
  }
  cout << s;
  return 0;
}
