/* 
 * Copyright (c) 1999-2002, Xiaoping Jia.  
 * All Rights Reserved. 
 */

import  java.io.*;

/**
 *  This program breaks colon-delimited records. 
 */
public class BreakRecords {
  
  public static void main(String[] args) {
    BufferedReader in = new BufferedReader(
                            new InputStreamReader(System.in));
    try {
      String record, field;
      char delim =':';   // the delimiter
      for (int n = 1; (record = in.readLine()) != null; n++) {
        System.out.println("Record  " + n);
        int begin, end, i;
        begin = 0;
        for (i = 0; (end = record.indexOf(delim, begin)) >= 0; i++) {
          field = record.substring(begin, end);
          begin = end + 1;  // skip the delimiter
          System.out.println("\tField " + i + ": " + field);
        }
        field = record.substring(begin);  // the last field
        System.out.println("\tField " + i + ": " + field);
      }
    } catch (IOException e) {}
  }
}