#include <bits/stdc++.h>
using namespace std;
const int INF = 0x3f3f3f3f;
const long long int LINF = 0x3f3f3f3f3f3f3f3fll;
int main() {
  string second;
  cin >> second;
  string a = "http";
  int p;
  if (second.substr(0, 4) == a)
    cout << second.substr(0, 4), p = 4;
  else
    cout << second.substr(0, 3), p = 3;
  string b = "ru";
  cout << "://" << second.substr(p, 1);
  while (1) {
    if (second.substr(++p, 2) == b) {
      cout << "." << second.substr(p++, 2);
      break;
    } else
      cout << second.substr(p, 1);
  }
  if (++p == second.size()) return cout << "\n", 0;
  cout << "/" << second.substr(p) << "\n";
  return 0;
}
