#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  string s;
  cin >> s;
  int i;
  if (s[0] == 'h') {
    cout << "http://";
    i = 4;
  } else {
    cout << "ftp://";
    i = 3;
  }
  int j = i + 1;
  while (s[j] != 'r' || s[j + 1] != 'u') {
    ++j;
  }
  for (int y = 0; y < j - i; ++y) {
    cout << s[i + y];
  }
  cout << ".ru";
  if (j + 1 < s.size() - 1) {
    cout << '/';
    for (int y = 0; y < s.size() - j - 2; ++y) {
      cout << s[j + 2 + y];
    }
  }
  cout << '\n';
  return 0;
}
