#include #include constexpr int INF = 2147483647; constexpr long long int INF_LL = 9223372036854775807; constexpr int MOD = 1000000007; using namespace std; typedef long long int ll; typedef unsigned long long int ull; //there are n cards on the table. //each cards are numbered from 1 to N. //mr.yuki should write an integer, which is no less than 1 and no more than M, no each cards. //how many ways to write? //N,M are integers between 1 and 16. random_device rnd; int main(int argc, char* argv[]) { int N, M; cin >> N >> M; boost::multiprecision::cpp_int ans = 1; for (int i = 0; i < N; i++)ans *= M; cout << ans << endl; }