/* 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 hora = "8 hrs 2 mins";
		int firstSpace = hora.indexOf(" ");
		int lastSpace = hora.lastIndexOf(" ");
		StringBuffer buf = new StringBuffer(hora);

    	buf.replace(firstSpace, firstSpace + 1, "");
    	buf.replace(lastSpace-1, lastSpace, "");
    	System.out.println(buf.toString());
	}
}