• Source
    1. #include<bits/stdc++.h>
    2.  
    3. using namespace std;
    4.  
    5. int main()
    6. {
    7. int step,mod;
    8.  
    9. while(scanf("%d%d",&step,&mod)==2)
    10. {
    11. if(__gcd(step,mod)==1)
    12. {
    13. printf("%10d%10d Good Choice\n\n",step,mod);
    14. }
    15. else
    16. {
    17. printf("%10d%10d Bad Choice\n\n",step,mod);
    18. }
    19. }
    20.  
    21. return 0;
    22. }