#include <bits/stdc++.h>
using namespace std;
string s, s1, s2, s3;
int x;
bool b;
int main(int argc, char *argv[]) {
  s1 = "ftp";
  s2 = "http";
  cin >> s;
  if (s[0] == 'f') {
    cout << s1 << "://";
    x = 3;
  } else {
    cout << s2 << "://";
    x = 4;
  }
  for (int i = x; i < s.size() - 1; i++) {
    if (s[i] == 'r' && s[i + 1] == 'u' && b == 1) {
      cout << ".ru";
      x = i + 2;
      break;
    }
    cout << s[i];
    b = 1;
  }
  if (x < s.size()) cout << "/";
  for (int i = x; i < s.size(); i++) cout << s[i];
  cout << endl;
  return 0;
}
