#include <bits/stdc++.h>
using namespace std;
const double PI = acos(-1);
const int INF = 1000 * 1000 * 1000 + 7;
const long long LINF = INF * (long long)INF;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  string s, r;
  cin >> s;
  if (s.substr(0, 4) == "http") {
    r = "http://";
    s = s.substr(4, (int)s.size());
  } else {
    r = "ftp://";
    s = s.substr(3, (int)s.size());
  }
  int p = s.find("ru");
  if (p == 0) {
    r += "ru";
    s = s.substr(2, (int)s.size());
  }
  p = s.find("ru");
  r += s.substr(0, p) + ".ru";
  s = s.substr(p + 2, (int)s.size());
  if ((int)s.size()) {
    r += "/" + s;
  }
  cout << r << endl;
  return 0;
}
