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