import java.util.Scanner; public class HelloWorld { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); long n = sc.nextLong(); long h = sc.nextLong(); long ans = 1; for (int i = 0; i < n; i ++) { ans = ans * sc.nextLong() % h; } System.out.println(ans == 0? "YES" : "NO"); } }