#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int cnt = 0;
  string d;
  int a = 0, b = 0, c = 0, q = 0;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == 'p' && !a) {
      d += s[i];
      d += "://";
      a = 1;
      q = 1;
    } else if (s[i] == 'r' && !b && !q && s[i + 1] == 'u') {
      d += '.';
      d += 'r';
      b = 1;
    } else if (s[i] == 'u' && b && !c) {
      d += s[i];
      c = 1;
      if (i != s.size() - 1) d += '/';
    } else {
      d += s[i];
      q = 0;
    }
  }
  cout << d << endl;
}
