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