// from https://i...content-available-to-author-only...e.com/TaR29j
/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
import java.util.Date;
import java.text.SimpleDateFormat;
import java.text.*;

/* Name of the class has to be "Main" only if the class is public. */
class TimeSheet
{
	public static void main (String[] args) throws java.lang.Exception
	{
		//Scanner myObj = new Scanner(System.in);  // Create a Scanner object
 
			Scanner myObj = new Scanner(System.in); // use myObj so you don't have to change it if you choose to use hard-wired inputs

			// https://w...content-available-to-author-only...t.com/how-to-format-date-using-printf-method-in-java
			Date dateObj = new Date();

			// https://stackoverflow.com/posts/39066917/revisions
			SimpleDateFormat sdf = new SimpleDateFormat("EEE MMM d, yyyy");

			System.out.println("From \"https://c...content-available-to-author-only...e.com/pwm/action/mobileGetTimesheetPunches\"");

			//stackoverflow/questions/2296685/how-to-read-input-with-multiple-lines-in-java
			//stackoverflow/questions/56887493/how-to-take-multi-line-input-in-java search:HashmatWarrior
			while(myObj.hasNext())
			{
				String gottaFix = myObj.nextLine();
				String[] dateString = new String[2];
				String header = "Type	Status	Time	Hours";
				String hours;
				String[] punch = new String[4];
			
				if(!gottaFix.isEmpty())
				{
					if(gottaFix.contains("Punches:"))
					{
						dateString = gottaFix.split(": ");
						dateObj = sdf.parse(dateString[1]);

						System.out.printf("%ta", dateObj); // Sun
						System.out.printf(" %tm", dateObj); // date
						System.out.printf("/%te", dateObj); // date

						System.out.print(", scheduledTime");

						/*System.out.printf("Date: %td%n", dateObj);	System.out.printf("Month: %tm%n", dateObj);	System.out.printf("Year: %ty%n", dateObj);	System.out.printf("getTime(): "+dateObj);*/
					}
			
					else if(gottaFix.contains("M"))
					{
						punch = gottaFix.split("\t");
						System.out.print(", ");
						System.out.print(punch[3].replaceAll(" \\DM", ""));

						if(punch[0].equals("ES"))
						{
							if(punch[1].equals("Edited"))
							{	System.out.println("/, (bank run); ");}
							else
							{	System.out.println(", no bank run; ");}
						}
					}
				}
			
				//else
				{
					
				}
			}
	}
}