let L = stdin.ReadLine() |> int let N = stdin.ReadLine() |> int let _ = stdin.ReadLine() let l = L/3-1 let f n = [1..n] |> List.fold (fun s _ -> s*8) 1 if l = 0 then N else f l * N |> printfn "%d"