#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int n = s.size(), new_i;
  for (int i = 0; i < n; i++) {
    if (s[i] == 'h' and s[i + 1] == 't' and s[i + 2] == 't' and
        s[i + 3] == 'p') {
      cout << "http://";
      new_i = i + 4;
      break;
    } else if (s[i] == 'f' and s[i + 1] == 't' and s[i + 2] == 'p') {
      cout << "ftp://";
      new_i = i + 3;
      break;
    }
  }
  int m_sesh, abar_suru;
  for (int i = n - 1; i >= new_i; i--) {
    if (s[i] == 'u' and s[i - 1] == 'r') {
      m_sesh = i - 2;
      abar_suru = i + 1;
      break;
    }
  }
  for (int i = new_i; i <= m_sesh; i++) {
    cout << s[i];
  }
  cout << ".ru";
  if (abar_suru < n) {
    cout << "/";
    for (int i = abar_suru; i < n; i++) {
      cout << s[i];
    }
  }
  cout << endl;
  return 0;
}
