#include <iostream>

using namespace std;

int main()
{
    int x,y,r,z=0;
    cout<<"r=";
    cin>>r;
    for(x=0;x<=r;x++){
        for(y=0;y<=r;y++){
        //if(x*x+y*y==r*r) cout<<"x="<<x<<" "<<"y="<<y<<endl;
        (x*x+y*y==r*r)?cout<<"x="<<x<<" "<<"y="<<y<<endl:cout<<'\r';
        }
    }
    return 0;
}
