#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string haha = s.substr(0, 3);
  if (haha != "ftp") {
    haha = "http";
    s = s.substr(4);
  } else
    s = s.substr(3);
  for (int i = 1; i < (int)s.size() - 1; ++i)
    if (s[i] == 'r' && s[i + 1] == 'u') {
      string domain = s.substr(0, i);
      string context;
      if (i + 1 == (int)s.size() - 1) {
        context = "";
      } else
        context = s.substr(i + 2);
      if (context != "")
        cout << haha << "://" << domain << ".ru"
             << "/" << context << "\n";
      else
        cout << haha << "://" << domain << ".ru"
             << "\n";
      return 0;
    }
  return 0;
}
