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