#include <bits/stdc++.h>
using namespace std;
const string HTTP = "http";
const string FTP = "ftp";
const string DOMAIN_ATTR = "://";
const string DOT = ".";
const string SLASH = "/";
const string END = "ru";
string str;
int endEnds = 0;
int lookAt = 0;
int main() {
  cin >> str;
  if (str.substr(0, 3) == FTP) {
    str.insert(3, DOMAIN_ATTR);
    lookAt += 3;
  } else {
    str.insert(4, DOMAIN_ATTR);
    lookAt += 4;
  }
  lookAt += 4;
  for (unsigned int i = lookAt; i < str.size() - 1; i++) {
    if (str.substr(i, 2) == END) {
      str.insert(i, DOT);
      endEnds = i + 3;
      break;
    }
  }
  if (str.size() - 1 >= endEnds) {
    str.insert(endEnds, SLASH);
  }
  cout << str << endl;
  return 0;
}
