#include <bits/stdc++.h>
using namespace std;
int main() {
  char s[60];
  char resource[70];
  scanf("%s", s);
  int i, r;
  if (s[0] == 'h')
    strcpy(resource, "http://"), i = 4, r = 7;
  else
    strcpy(resource, "ftp://"), i = 3, r = 6;
  int j = i + 1;
  while (1) {
    if (s[j] == 'r' && s[j + 1] == 'u') break;
    ++j;
  }
  for (; i < j; ++i, ++r) resource[r] = s[i];
  resource[r++] = '.';
  resource[r++] = 'r';
  resource[r++] = 'u';
  i = j + 2;
  if (s[i] == 0)
    resource[r] = 0;
  else {
    resource[r++] = '/';
    while (s[i]) {
      resource[r++] = s[i++];
    }
    resource[r] = 0;
  }
  printf("%s", resource);
  return 0;
}
