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