#include <bits/stdc++.h>
using namespace std;
int main() {
  string a;
  int t = 0, i;
  cin >> a;
  if (a[0] == 'f') {
    cout << "ftp://" << a[3];
    i = 4;
  } else {
    cout << "http://" << a[4];
    i = 5;
  }
  for (; !(a[i] == 'r' && a[i + 1] == 'u') && a[i] != '\0'; i++) cout << a[i];
  cout << ".ru";
  i += 2;
  if (a[i] != '\0') cout << "/";
  for (; a[i] != '\0'; i++) cout << a[i];
  return 0;
}
