#include<iostream>
#include<cstring>
using namespace std;
int main()
{
int n,m;
int c;
while(cin>>n>>m,m!=-1&&n!=-1)
{
while(m!=0)
{
c=n%m;
n=m;
m=c;
}
if(n==1)
cout<<"YES"<<endl;
else
cout<<"POOR Haha"<<endl;
}
return 0;
}
HDU 2104
最新推荐文章于 2019-11-12 21:34:16 发布