#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int h = 0;
  int l = s.size();
  if (s[0] == 'h') {
    cout << s[0] << s[1] << s[2] << s[3] << "://";
    h = 4;
  } else {
    cout << s[0] << s[1] << s[2] << "://";
    h = 3;
  }
  int k = -1;
  for (int i = h + 1; i < l; i++) {
    if (s[i] == 'r' && s[i + 1] == 'u') {
      k = i;
      break;
    }
  }
  for (int i = h; i < k; i++) cout << s[i];
  cout << ".ru";
  k += 2;
  if (k == l)
    return 0;
  else
    cout << "/";
  for (int i = k; i < l; i++) cout << s[i];
  return 0;
}
