#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int p = 0, t = 1;
  if (s.substr(0, 4) == "http") {
    p = 1;
    cout << "http://";
  } else
    cout << "ftp://";
  int i = p + 3;
  while (!(s[i] == 'r' && s[i + 1] == 'u') || t) {
    cout << s[i];
    i++;
    t = 0;
  }
  cout << ".ru";
  if (s.size() - i - 2 > 0) cout << '/';
  cout << s.substr(i + 2, s.size() - (i + 2));
}
