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