typedef long long ll; #include using namespace std; int main() { ll x,y; std::cin >> x>>y; unordered_map cou; ll sq = (int)sqrt(y); for (ll i = 1; i <= sq; i++) { for (ll j = 0; j <= sq; j++) { cou[i*i+j*j]++; // std::cout << i<<" "<