#include <bits/stdc++.h>
int findru();
char str[60];
int main() {
  while (scanf("%s", str) != EOF) {
    int p;
    if (str[0] == 'f') {
      printf("ftp://");
      p = 3;
    } else {
      printf("http://");
      p = 4;
    }
    int k = findru();
    for (int i = p; i < k; i++) {
      printf("%c", str[i]);
    }
    printf(".ru");
    if (*(str + k + 2) != '\0') printf("/");
    printf("%s\n", str + k + 2);
  }
  return 0;
}
int findru() {
  int i;
  if (str[0] == 'h') i = 5;
  if (str[0] == 'f') i = 4;
  for (; !(*(str + i) == 'r' && *(str + 1 + i) == 'u'); i++)
    ;
  return i;
}
