#include using namespace std; typedef long long ll; typedef pair pii; typedef vector vi; #define mp make_pair #define pb push_back #define pf push_front #define fi first #define se second #define MOD 1000000007 int B[100000000]; int ans,cnt; int main(){ int N,D; cin >> N >> D; for(int i = 1;i=1) cnt += B[i*i+j*j]; }*/ if(B[i*i+j*j]>=1) cnt+= B[i*i+j*j]; } } cout << cnt <