using System; public class Program { public static void Main() { int n = int.Parse(Console.ReadLine()); int m = int.Parse(Console.ReadLine()); string[] codon = Console.ReadLine().Split(); Console.WriteLine(m*Math.Pow(8, (n/3-1))); } }