#include <bits/stdc++.h>
using namespace std;
const int oo = int(2e9) + 9;
const double eps = 1e-9;
const double pi = 3.14159265358979323846264338327950;
int main() {
  char str[105];
  cin >> str;
  int len = strlen(str);
  bool f = true;
  for (int i = 1; i < len; i++) {
    if (!strncmp(str + i, "dot", 3) && i != len - 3) {
      str[i] = '.';
      str[i + 1] = '*';
      str[i + 2] = '*';
    }
    if (!strncmp(str + i, "at", 2) && f && i != len - 2) {
      str[i] = '@';
      str[i + 1] = '*';
      f = false;
    }
  }
  for (int i = 0; i < len; i++)
    if (str[i] != '*') cout << str[i];
  cout << endl;
  return 0;
}
