/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

import java.time.* ;
import java.time.format.* ;
import java.time.temporal.* ;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{

String input = "15:30:18" ;
LocalTime lt = LocalTime.parse( input ) ;

String output1 = lt.toString() ;

// Localize to US.
DateTimeFormatter f = DateTimeFormatter.ofLocalizedTime( FormatStyle.MEDIUM ).withLocale( Locale.US ) ;
String output2 = lt.format( f ) ;

// Localize to Québec.
DateTimeFormatter fQuébec = DateTimeFormatter.ofLocalizedTime( FormatStyle.MEDIUM ).withLocale( Locale.CANADA_FRENCH ) ;
String output3 = lt.format( fQuébec ) ;

System.out.println( "lt.toString(): " + lt ) ;
System.out.println( "output1: " + output1 ) ;
System.out.println( "output2: " + output2 ) ;
System.out.println( "output3: " + output3 ) ;

	}
}