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