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