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 (int i = 1; i <= sq; i++) { for (int j = 0; j <= sq; j++) { cou[i*i+j*j]++; // std::cout << i<<" "<