#include <bits/stdc++.h>
using namespace std;
char str[60];
char ans1[5], ans2[60], ans3[60];
int main() {
  cin >> str;
  int i;
  if (str[0] == 'f') {
    printf("ftp://");
    i = 3;
  } else {
    printf("http://");
    i = 4;
  }
  int flag = 0, flag2 = 0;
  int len = strlen(str);
  cout << str[i];
  for (int j = i + 1; str[j] != '\0'; j++) {
    if (flag == 0 && str[j] == 'r' && str[j + 1] == 'u') {
      cout << ".ru";
      j++;
      flag = 1;
      if (flag2 == 0 && j != len - 1) {
        cout << "/";
        flag2 = 1;
      }
    } else
      cout << str[j];
  }
  cout << endl;
}
