using System; using System.Linq; using System.Collections.Generic; public class yukicoder { public static void Main() { long l = long.Parse(Console.ReadLine()); long n = long.Parse(Console.ReadLine()); long work = l / 3; long shisu; if(work == 1) { shisu = 1; } else { shisu = (long)Math.Pow(8, work - 1); } Console.WriteLine(n * shisu); } }