#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  string s;
  cin >> s;
  long long flag = 0, i = 0;
  if (s[0] == 'h') cout << "http://", i = 4;
  if (s[0] == 'f') cout << "ftp://", i = 3;
  for (i; i < s.size();) {
    if (flag == 0) {
      cout << s[i];
      i++;
    }
    if (s[i] == 'r' && s[i + 1] == 'u') {
      flag = 1;
      cout << ".ru";
      i += 2;
      break;
    }
  }
  for (int j = i; j < s.size(); j++) {
    if (flag) {
      cout << "/";
      cout << s[j];
      flag = 0;
    } else
      cout << s[j];
  }
  return 0;
}
