#include using namespace std; int main(){ string a,b; cin>>a>>b; if (b == "0") { cout << 1 << endl; return 0; } int x = a[a.length() -1] - '0'; int y = b[b.length() -1] - '0'; int s = 1; for(int i=0;i