#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int i = 0, len = s.size();
  if (s[0] == 'f')
    cout << "ftp://", i = 3;
  else
    cout << "http://", i = 4;
  int j = s.rfind("ru");
  string c;
  c.assign(s, i, j - i);
  cout << c, i = j + 2;
  cout << ".ru";
  if (i < len) {
    cout << '/';
    c.assign(s, i, len - i);
    cout << c;
  }
  cout << endl;
  return 0;
}
