#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string s1 = "";
  if (s[0] == 'f') {
    s1 = s1 + s[0] + s[1] + s[2] + "://";
    int idx = -1;
    for (int i = s.length() - 1; i > 2; i--) {
      if (s[i] == 'u' && s[i - 1] == 'r') {
        idx = i - 1;
        break;
      }
    }
    for (int i = 3; i < idx; i++) {
      s1 = s1 + s[i];
    }
    s1 = s1 + '.' + s[idx] + s[idx + 1];
    if (idx + 1 != s.length() - 1) {
      s1 += '/';
      for (int i = idx + 2; i < s.length(); i++) {
        s1 = s1 + s[i];
      }
    }
  } else {
    s1 = s1 + s[0] + s[1] + s[2] + s[3] + "://";
    int idx = -1;
    for (int i = s.length() - 1; i > 3; i--) {
      if (s[i] == 'u' && s[i - 1] == 'r') {
        idx = i - 1;
        break;
      }
    }
    for (int i = 4; i < idx; i++) {
      s1 = s1 + s[i];
    }
    s1 = s1 + '.' + s[idx] + s[idx + 1];
    if (idx + 1 != s.length() - 1) {
      s1 += '/';
      for (int i = idx + 2; i < s.length(); i++) {
        s1 = s1 + s[i];
      }
    }
  }
  cout << s1 << endl;
  return 0;
}
