#include <bits/stdc++.h>
using namespace std;
int main() {
  int q, w, e, r, t;
  char a[51];
  cin >> a;
  if (a[0] == 'h') {
    cout << "http://";
    w = 4;
  } else {
    cout << "ftp://";
    w = 3;
  }
  cout << a[w];
  w++;
  while ((a[w] != 'r') || (a[w + 1] != 'u')) {
    cout << a[w];
    w++;
  }
  cout << ".ru";
  w += 2;
  if (a[w]) {
    cout << '/';
    while (a[w]) {
      cout << a[w];
      w++;
    }
  }
  return 0;
}
