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

const int max=3;
const char sep='/';

int main()
{
  string input;
  string parse[max];
  string::size_type pos1=0;
  string::size_type sublen;

  getline(cin, input);
  while (cin) {
    for (int i=0; i<max; i++) {
      sublen = input.find(sep, pos1) - pos1;
      if (i < max-1 && pos1+sublen >= input.size()) {
	cerr << "Bad format." << endl;
	exit(1);
      }
      else {
	parse[i] = input.substr(pos1,sublen);
	pos1 += sublen + 1;
      }
    }

    for (int i=-0; i<max; i++)
      cout << i << ": " << parse[i] << endl;
    
    getline(cin,input);
  }
  pos1 = 0;
}

