#include "bits/stdc++.h" using namespace std; typedef long long ll; #define rep(i,n) for(int i=0;i<(int)(n);i++) int gcd(int a,int b){return b?gcd(b,a%b):a;} int f[10000001]; int main() { cin.tie(0); ios::sync_with_stdio(false); ll x,y; int s=0; cin >> x >> y; for(int i=1;i<=sqrt(y);i++) { for(int j=0;j<=sqrt(y);j++) { f[i*i+j*j]++; } } for(ll i=x;i<=y;i++) { if (s