#include <bits/stdc++.h>
using namespace std;
int main(int argc, char *argv[]) {
  string s, s1;
  int kol1 = 0, i;
  cin >> s;
  if (s[0] == 'h')
    kol1 = 4;
  else
    kol1 = 3;
  for (i = 0; i < kol1; i++) s1.push_back(s[i]);
  s1.push_back(':');
  s1.push_back('/');
  s1.push_back('/');
  i = kol1;
  if (s[i] == 'r' && s[i + 1] == 'u') {
    s1.push_back(s[i]);
    s1.push_back(s[i + 1]);
    i += 2;
  }
  while (!(s[i + 1] == 'r' && s[i + 2] == 'u')) {
    s1.push_back(s[i]);
    i++;
  }
  s1.push_back(s[i]);
  s1.push_back('.');
  s1.push_back('r');
  s1.push_back('u');
  i += 3;
  if (i < s.size()) {
    s1.push_back('/');
    for (i; i < s.size(); i++) {
      s1.push_back(s[i]);
    }
  }
  cout << s1 << endl;
  return 0;
}
