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

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

/* 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 total_string = "Afternoon-99127.79;Night-67236.27;Morning-61876.65;Evening-20271.42;Housekeeping-5444.05;";

String[] spilted_string = total_string.split(";");
for (int i=0;i<spilted_string.length;i++){
   System.out.println(spilted_string[i].split("-")[0]);
   System.out.println(spilted_string[i].split("-")[1]);
}


	}
}