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

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

/* 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 = "11-2,2020" ;
		DateTimeFormatter fInput = DateTimeFormatter.ofPattern( "M-d,uuuu" ) ;
		
		LocalDate ld = LocalDate.parse( input , fInput ) ;
		
		DateTimeFormatter fOutput = DateTimeFormatter.ofPattern( "MM-dd-uuuu" ) ;
		String output = ld.format( fOutput ) ;
		
		System.out.println( input + " ➠ " + output ) ;
		
		System.out.println(
			LocalDate
			.parse( "11-2,2020" , DateTimeFormatter.ofPattern( "M-d,uuuu" ) )
			.format( DateTimeFormatter.ofPattern( "MM-dd-uuuu" )  )
		);
	}
}