import java.io.*; public class quiz3_solution { public static void main (String []args) throws IOException { System.out.print ("Enter date in month/day/year format: "); InputStreamReader reader = new InputStreamReader (System.in); BufferedReader input = new BufferedReader (reader); String date = input.readLine (); int first_separator = date.indexOf ('/'); String month = date.substring (0, first_separator); int second_separator = date.indexOf ('/', first_separator + 1); String day = date.substring (first_separator + 1, second_separator); String year = date.substring (second_separator + 1); System.out.println ("Year = " + year + " " + "Month = " + month + " " + "Day = " + day); } }