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