#include <bits/stdc++.h>
using namespace std;
using ll = long long;
ll mod_pow(ll a, ll b, ll m) {
  ll res = 1;
  while (b) {
    if (b & 1) {
      res = (res * a) % m;
    }
    a = (a * a) % m;
    b >>= 1;
  }
  return res;
}
ll mod_inverse(long long int a, long long int m) {
  return mod_pow(a, m - 2, m);
}
void solve() {
  string s;
  cin >> s;
  if (s[0] == 'h') {
    cout << "http://";
    cout << s[4];
    for (long long int i = 5; i < s.size(); ++i) {
      if (i + 1 < s.size()) {
        if (s[i] == 'r' && s[i + 1] == 'u') {
          cout << ".ru";
          if (s.size() - i - 2 > 0) {
            cout << "/" << s.substr(i + 2, s.size() - i - 2);
          }
          return;
        }
      }
      cout << s[i];
    }
  } else {
    cout << "ftp://";
    cout << s[3];
    for (long long int i = 4; i < s.size(); ++i) {
      if (i + 1 < s.size()) {
        if (s[i] == 'r' && s[i + 1] == 'u') {
          cout << ".ru";
          if (s.size() - i - 2 > 0) {
            cout << "/" << s.substr(i + 2, s.size() - i - 2);
          }
          return;
        }
      }
      cout << s[i];
    }
  }
}
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long int t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
