#include <bits/stdc++.h>
int main() {
  char dir[50];
  int c, ban = 1;
  scanf("%s", dir);
  char *p = dir;
  if (dir[0] == 'f') {
    printf("ftp://");
    p += 3;
  } else {
    printf("http://");
    p += 4;
  }
  printf("%c", *p);
  p++;
  while (*p != '\0') {
    if (*p == 'r' && ban == 1) {
      p++;
      if (*p == 'u') {
        printf(".ru");
        ban = 0;
        p++;
        if (*p == '\0')
          return 0;
        else
          printf("/");
      } else
        p--;
    }
    printf("%c", *p);
    p++;
  }
  return 0;
}
