#include <bits/stdc++.h>
char s[1000];
int main() {
  int flag;
  while (scanf("%s", s) == 1) {
    if (s[0] == 'h') {
      flag = 4;
      printf("http");
    } else {
      flag = 3;
      printf("ftp");
    }
    printf("://");
    int n = strlen(s);
    int yo;
    for (int i = n - 2; i; i--)
      if (s[i] == 'r' && s[i + 1] == 'u') {
        yo = i;
        break;
      }
    for (int i = flag; i < yo; i++) putchar(s[i]);
    putchar('.');
    printf("ru");
    if (yo == n - 2)
      puts("");
    else {
      putchar('/');
      for (int i = yo + 2; i < n; i++) putchar(s[i]);
      puts("");
    }
  }
  return 0;
}
