Code:
import java.io.*;
class angle1
{
	int deg,min;
	angle1()
	{
		deg=2;
		min=30;
	}
	angle1(int d,int m)
	{
		deg=d;
		min=m;
	}
	void display()
	{
		System.out.print(deg+" "+min);
		
	}
	int angletomin()
	{
		int m;
		int d=(d*2)+m;
		return d;
	}
 int sumanglel(int a,int b)
	{
		angle1 o=new angle1();
		int p=a.angletomin();
		int q=b.angletomin();
		int r=p+q;
	}
	int mintoangle(int m)
	{
		angle b=new angle();
		b.deg=m/60;
		b.min=m/60;
		return b;
		
	}
	public static void main(String args[])throws IOException
	{
		angle a=new angle(5,40);
		angle b=new angle(6,20);
		angle c=new angle();
		InputStreamReader d=new InputStreamReader(System.in);
		deg=Integer.parseInt(br.readLine());
		min=Integer.parseInt(br.readLine());
		a.display();
		b.display();
		c=a.sumangle();
		c.display();
		}
}