// Consider the main method, which interactively reads and writes the 
// identification number, age, salary (in thousands of dollars), and name
// of each individual in a group of employees.  How can you improve the program?
// Some of the issues are obvious, while others are more subtle.  
// Try to keep in mind all the topics discussed in Chapter 2 (Principles of Programming and Software Engineering).

import java.util.*;

public class Exercise3 {

  public static void main(String args[]) {
    int x1, x2, x3, i;
    String name;
    Scanner input = new Scanner(System.in);

    x1 = input.nextInt();
    x2 = input.nextInt();
    x3 = input.nextInt();

    while (x1 != 0) {
      name = input.next();
      System.out.println(x1 + " " + x2 + " " + x3 + name);
      
      x1 = input.nextInt();
      x2 = input.nextInt();
      x3 = input.nextInt();
    }  // end while

  }  // end main

}  // end Exercise3 

