#include <bits/stdc++.h>
using namespace std;
int main() {
  string str;
  cin >> str;
  int i;
  if (str[0] == 'h') {
    string st = "", str1 = "";
    cout << "http://";
    auto pos = str.find("ru");
    if (pos == 4) {
      pos = str.find("ru", pos + 1);
    }
    st = str.substr(4, pos - 4);
    if (pos + 1 == str.length() - 1)
      str1 = st + '.' + "ru";
    else
      str1 = st + '.' + "ru" + '/' + str.substr(pos + 2);
    cout << str1 << endl;
  } else if (str[0] == 'f') {
    cout << "ftp://";
    string st = "", str1 = "";
    auto pos = str.find("ru");
    if (pos == 3) pos = str.find("ru", pos + 1);
    st = str.substr(3, pos - 3);
    if (pos + 1 == str.length() - 1)
      str1 = st + '.' + "ru";
    else
      str1 = st + '.' + "ru" + '/' + str.substr(pos + 2);
    cout << str1 << endl;
  }
  return 0;
}
