#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e5 + 5;
const int mod = 1e9 + 7;
void solve() {
  string s;
  cin >> s;
  int n = s.size();
  if (s[0] == 'f') {
    cout << "ftp://" << s[3];
    string t = "";
    for (int i = 4; i < n - 1; i++) {
      if (s[i] == 'r' && s[i + 1] == 'u') {
        cout << t << ".ru";
        if (i != n - 2) {
          string tmp = s.substr(i + 2, n - i - 2);
          cout << "/" << tmp << endl;
          return;
        }
        cout << endl;
        return;
      } else
        t += s[i];
    }
  } else {
    cout << "http://" << s[4];
    string t = "";
    for (int i = 5; i < n - 1; i++) {
      if (s[i] == 'r' && s[i + 1] == 'u') {
        cout << t << ".ru";
        if (i != n - 2) {
          string tmp = s.substr(i + 2, n - i - 2);
          cout << "/" << tmp << endl;
          return;
        }
        cout << endl;
      } else
        t += s[i];
    }
  }
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int t = 1;
  while (t--) solve();
  return 0;
}
