#include<bits/stdc++.h> using namespace std; int main(){ double a,n; cin>>a>>n; for(int i=2;i<n;i++){ a*=a*i; } cout<<a; return 0; }