#include <bits/stdc++.h>
using namespace std;
string c[8] = {"vaporeon", "jolteon", "flareon", "espeon",
               "umbreon",  "leafeon", "glaceon", "sylveon"};
int main() {
  string x, y = "";
  cin >> x;
  int i = 0;
  if (x[0] == 'h') {
    i = 4;
    y += "http://";
  } else if (x[0] == 'f') {
    i = 3;
    y += "ftp://";
  }
  y += x[i];
  i++;
  for (; i < x.size(); i++) {
    if (x[i] == 'r' && x[i + 1] == 'u') break;
    y += x[i];
  }
  y += ".ru";
  i += 2;
  if (i < x.size()) y += '/';
  for (; i < x.size(); i++) y += x[i];
  cout << y;
  cout << endl;
  return 0;
}
