#include <iostream.h>
#include <string>

// return the number of tokens read.
int parse(string tokens[], char sep, const string& input)
{
  string::size_type start=0;
  string::size_type end;
  int i;

  for (i=0; (end = input.find(sep, start)) != input.npos; i++, start=end+1)
    tokens[i] = input.substr(start,end-start);
  
  tokens[i] = input.substr(start);

  return i+1;
}

const char sep='/';

int main()
{
  string tokens[3];
  string input;
  int num;

  getline(cin,input);
  while(cin) {

    num=parse(tokens,sep,input);
    for (int i=0;i<num;i++)
      cout << tokens[i] << ":";
    cout << endl;

    getline(cin,input);
  }
}

    
  
  
  


