#include <bits/stdc++.h>
using namespace std;
const int OO = (int)2e9;
const double eps = 1e-9;
int daysInMonths[] = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
int di[] = {-1, 0, 1, 0};
int dj[] = {0, 1, 0, -1};
int main() {
  std::ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  string dot = "dot", at = "at", input, output = "";
  cin >> input;
  bool first_at = true, changed = false;
  int i = 0;
  output += input[0];
  for (int i = (1); i < ((int)input.size()); i++) {
    changed = false;
    if (i + 3 < (int)input.size())
      if (input[i] == dot[0] && input[i + 1] == dot[1] &&
          input[i + 2] == dot[2]) {
        output += '.';
        i += 2;
        changed = true;
      }
    if (i + 2 < (int)input.size()) {
      if ((input[i] == at[0] && input[i + 1] == at[1]) && first_at) {
        output += '@';
        i += 1;
        changed = true;
        first_at = false;
      }
    }
    if (!changed) output += input[i];
  }
  cout << output;
  return 0;
}
