a.c 355 B

1234567891011121314151617181920
  1. #include <stdio.h>
  2. int main()
  3. {
  4. int n;
  5. while (~scanf("%d", &n))
  6. {
  7. int t = n;
  8. while(n % 2 == 0)
  9. n /= 2;
  10. while (n % 3 == 0)
  11. n /= 3;
  12. while (n % 5 == 0)
  13. n /= 5;
  14. if (n == 1 && n != t) puts("Accepted");
  15. else puts("Wrong");
  16. }
  17. return 0;
  18. }