#include <bits/stdc++.h>
using namespace std;
double PI = acos(-1);
int arr[10000005];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  int n, m, T, res;
  int maxi = -(1 << 30) - 1, mini = (1 << 30) - 1, count = 0;
  int i, j, k;
  bool flag;
  string s1, s2;
  char s[100000];
  int ara[100005], ara2[100005];
  cin >> s1;
  s1 = "-" + s1 + "---";
  count = 1;
  for (i = 1; i <= s1.length() - 4; i++) {
    if (s1[i] == 'd' && s1[i + 1] == 'o' && s1[i + 2] == 't' &&
        (i > 1 && i + 3 - 1 < s1.length() - 4)) {
      s2 += '.';
      i = i + 3 - 1;
    } else if (count == 1 && s1[i] == 'a' && s1[i + 1] == 't' &&
               (i > 1 && i + 2 - 1 < s1.length() - 4)) {
      s2 += '@';
      i = i + 2 - 1;
      count--;
    } else {
      s2 += s1[i];
    }
  }
  cout << s2 << endl;
}
