import java.util.Scanner; /** * Created by chshru on 2017/11/4. */ public class A { public static void main(String[] args) { Scanner cin = new Scanner(System.in); while (cin.hasNext()) { int n = cin.nextInt(); 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) System.out.println("Accepted"); else System.out.println("Wrong"); } cin.close(); } }