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

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

/* 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
	{
	    Pattern p1=Pattern.compile("(\\d{2})/(\\d{2})/(\\d{4})");
	    Matcher m1=p1.matcher("04/30/1999");
		
	    if (m1.find()){
	        System.out.println("Month: "+m1.group(1)+" Day: "+m1.group(2)+" Year: "+m1.group(3));
	    }
	}
}