#include <bits/stdc++.h>
using namespace std;
int main() {
  char a[50], ans[55];
  int i, j, k;
  cin >> a;
  if (a[0] == 'h') {
    ans[0] = 'h';
    ans[1] = 't';
    ans[2] = 't';
    ans[3] = 'p';
    ans[4] = ':';
    ans[5] = '/';
    ans[6] = '/';
    j = 7;
    i = 4;
    for (k = 5; a[k] != '/0'; k++) {
      if (a[k] == 'r' && a[k + 1] == 'u') break;
    }
    for (i; i < k; i++, j++) ans[j] = a[i];
    ans[j] = '.';
    j++;
    for (k = 0; k < 2; k++) {
      ans[j] = a[i];
      i++;
      j++;
    }
    if (a[i] != '\0') {
      ans[j] = '/';
      j++;
      while (a[i] != '\0') {
        ans[j] = a[i];
        i++;
        j++;
      }
    }
    ans[j] = '\0';
  }
  if (a[0] == 'f') {
    ans[0] = 'f';
    ans[1] = 't';
    ans[2] = 'p';
    ans[3] = ':';
    ans[4] = '/';
    ans[5] = '/';
    j = 6;
    i = 3;
    for (k = 4; a[k] != '/0'; k++) {
      if (a[k] == 'r' && a[k + 1] == 'u') break;
    }
    for (i; i < k; i++, j++) ans[j] = a[i];
    ans[j] = '.';
    j++;
    for (k = 0; k < 2; k++) {
      ans[j] = a[i];
      i++;
      j++;
    }
    if (a[i] != '\0') {
      ans[j] = '/';
      j++;
      while (a[i] != '\0') {
        ans[j] = a[i];
        i++;
        j++;
      }
    }
    ans[j] = '\0';
  }
  cout << ans;
  return 0;
}
