import std.algorithm, std.array, std.container, std.range; import std.numeric, std.math, std.bigint, std.bitmanip, std.random; import std.string, std.conv, std.stdio, std.typecons; void main() { auto l = readln.chomp.to!int; auto n = readln.chomp.to!int; auto si = readln.split; writeln(2 ^^ (l - 3) * n); }