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