#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  string ans;
  cin >> s;
  int i = 0;
  int j = 0;
  while (i < s.size() & j < 3) {
    if (j == 0) {
      if (s[i] == 'f') {
        ans = "ftp://";
        i = 3;
      } else {
        ans = "http://";
        i = 4;
      }
      j = 1;
    }
    if (j == 1) {
      int temp = i;
      while (s[i + 1] != 'r' || s[i + 2] != 'u') {
        i++;
      }
      ans += s.substr(temp, i + 1 - temp);
      ans += ".ru";
      i = i + 3;
      j = 2;
    }
    if (j == 2) {
      if (s.size() - i) {
        ans += "/";
        ans += s.substr(i, s.size() - i);
        i = s.size();
      }
    }
  }
  cout << ans << endl;
  return 0;
}
