
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int price = Integer.parseInt(sc.nextLine());
int loop = Integer.parseInt(sc.nextLine());
int sum = 0;
int x = 0;
int y = 0;
for(int i = 0; i<loop ; i++) {
x = sc.nextInt();
y = sc.nextInt();
sum+= x*y;
}
if(sum == price) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
}
