#include #include using namespace std; int main(){ string N,M; int n,m,ans; cin >> N >> M; n = (int)N[N.length()-1]-48; if(M.length() < 2) m = stoi(M); else m = stoi(M.substr(M.length()-2)); if(M == "0") ans = 1; else { ans = n; for(int i=1;i