#include using namespace std; #include #include #include #include typedef long long ll; typedef long double lb; int l[3]; int main(void) { ll i,j,k; int memory[2]; ll n,m; ll ans = 0; cin >> n >> m; ans = 1; m %= (2*5*7*9); n %= 10; for(i=0;i