import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int tot = sc.nextInt();
int tcnt = sc.nextInt();
for (int i = 0; i < tcnt; i++) {
int price = sc.nextInt();
int count = sc.nextInt();
tot = tot - (price * count);
}
if (tot == 0) {
System.out.println("Yes");
} else {
System.out.println("No");
}
sc.close();
}
}