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