#include <bits/stdc++.h>
using namespace std;
const long long mod = (long long)1e9 + 7;
int isp(long long n) {
  for (long long i = 2; i * i <= n; ++i) {
    if (n % i == 0) return 0;
  }
  return 1;
}
void solve() {
  string s, a = "", t;
  cin >> s;
  int n = s.length(), l;
  if (s.substr(0, 3) == "ftp") {
    a += "ftp://";
    l = 3;
  } else {
    a += "http://";
    l = 4;
  }
  size_t pi = s.find("ru");
  if (pi == l) {
    size_t temp = s.find("ru", pi + 1);
    pi = temp;
  }
  a += s.substr(l, pi - l);
  a += ".ru";
  t = s.substr(pi + 2, n);
  if (t != "") {
    a += "/" + t;
  }
  cout << a;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  int test = 1;
  while (test--) {
    solve();
    cout << '\n';
  }
  return 0;
}
