#include <bits/stdc++.h>
using namespace std;
int main() {
  char s[52];
  scanf("%s", s);
  int s1 = strlen(s), i, j, k;
  for (i = 0; i < s1; i++) {
    if (s[i] == 't' && s[i + 1] == 'p') {
      cout << s[i] << s[i + 1] << "://";
      break;
    }
    cout << s[i];
  }
  for (j = i + 2; j < s1; j++) {
    if (s[j] == 'r' && s[j + 1] == 'u' && s[j - 2] != 't') break;
    cout << s[j];
  }
  cout << "." << s[j] << s[j + 1];
  if (j != s1 - 2)
    cout << "/";
  else
    return (0);
  for (k = j + 2; k < s1; k++) cout << s[k];
  return (0);
}
