#include #include #define ft first #define sc second #define pt(sth) cout << sth << "\n" #define moca(a, s, b) a=((a)s(b)+MOD)%MOD using namespace std; typedef long long ll; typedef pair pll; templatebool chmax(T &a, const T &b) {if(abool chmin(T &a, const T &b) {if(b> a[i]; */ ll cnt[MAX*100]={}; int main(void) { ll i, j, k; ll X, Y; cin >> X >> Y; for(i=1; i<=sqrt(MAX*100); i++) { for(j=i; j<=sqrt(MAX*100); j++) { ll a=i*i+j*j; if(a