#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  bool a = false, b = false;
  int p = 112, r = 114, sl = 47, u = 117, to = 46;
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    if (int(s[i]) == p && a == false) {
      s.insert(i + 1, "://");
      a = true;
    }
    if (int(s[i]) == r && int(s[i - 1]) != sl && int(s[i + 1]) == u &&
        b == false) {
      s.insert(i, ".");
      b = true;
    }
  }
  for (int i = 5; i < s.size(); i++)
    if (s[i] == to && i + 3 < s.size()) s.insert(i + 3, "/");
  cout << s;
  return 0;
}
