1234567891011121314151617181920 |
- #include <stdio.h>
- int main()
- {
- int n;
- while (~scanf("%d", &n))
- {
- int t = n;
- while(n % 2 == 0)
- n /= 2;
- while (n % 3 == 0)
- n /= 3;
- while (n % 5 == 0)
- n /= 5;
- if (n == 1 && n != t) puts("Accepted");
- else puts("Wrong");
- }
- return 0;
- }
|