#include <bits/stdc++.h>
using namespace std;
long Min(long i, long j) { return i < j ? i : j; }
long Max(long i, long j) { return i > j ? i : j; }
int main() {
  long a, b, c, d, e, i, j, k, l, m, n;
  char str[500];
  while (cin >> str) {
    if (str[0] == 'h') {
      cout << "http://";
      c = 4;
    } else {
      cout << "ftp://";
      c = 3;
    };
    long ini = c;
    l = strlen(str);
    long rup = 0;
    while (c < l) {
      if (str[c] == 'r' && c + 1 < l && str[c + 1] == 'u' && rup == 0 &&
          c != ini) {
        cout << ".ru";
        c += 2;
        if (c != l) cout << '/';
        rup = 1;
      } else {
        cout << str[c];
        c++;
      }
    }
  }
  return 0;
}
