#include <bits/stdc++.h>
using namespace std;
const int maxn = 1000005;
int prime[1000050];
int num[1000050];
int ans[1000050];
int flag[1000050];
int q;
int p;
char a[55];
char b[100];
int main() {
  int i, j, k, t, m, n, st;
  while (cin >> a) {
    st = 0;
    q = 0;
    p = 0;
    for (i = 0; a[i + 1] != '\0'; i++) {
      if (a[i] == 'r' && a[i + 1] == 'u') {
        st = i;
      }
    }
    if (a[0] == 'f') {
      for (p = 0; p < 3; p++) {
        b[q++] = a[p];
      }
    } else {
      for (p = 0; p < 4; p++) {
        b[q++] = a[p];
      }
    }
    b[q++] = ':';
    b[q++] = '/';
    b[q++] = '/';
    for (; p < st; p++) {
      b[q++] = a[p];
    }
    b[q++] = '.';
    for (; p < st + 2; p++) {
      b[q++] = a[p];
    }
    if (a[p] != '\0') {
      b[q++] = '/';
      for (; a[p] != '\0'; p++) {
        b[q++] = a[p];
      }
    }
    b[q] = '\0';
    cout << b << endl;
  }
  return 0;
}
