using System;
public class Program
{
public static void Main()
int g, c;
g = int.Parse(Console.ReadLine());
c = int.Parse(Console.ReadLine());
int gp = (g*20);
int cp = (c*12);
Console.WriteLine("grownup payment is:" + " " + gp);
Console.WriteLine("child payment is:" + " " + cp);
Console.WriteLine("total is:" + " " + (gp+cp));
}