#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int l = s.length();
  int i = l - 1;
  while ((s[i] != 'u') || (s[i - 1] != 'r')) --i;
  int y = i - 2;
  bool r = true;
  for (int i = 0; i < s.length(); ++i) {
    cout << s[i];
    if (i == y) {
      cout << '.';
    }
    if ((s[i] == 'p') && r) {
      cout << "://";
      r = false;
    }
    if ((i == y + 2) && ((i + 1) < l)) cout << "/";
  }
  cout << endl;
}
