import sys

x = int(sys.stdin.readline())
n = int(input())
cost = 0

for _ in range(n):
    a,b = map(int, sys.stdin.readline().split())
    cost += a * b

if x == cost:
    print('Yes')
else:
    print('No')

'HELLO WORLD > BAEKJOON' 카테고리의 다른 글

백준 | 9656 돌 게임 2  (0) 2025.01.18
백준 | 9655 돌 게임  (0) 2025.01.18
백준 | 16340 제리와 톰  (0) 2025.01.18
백준 | 10804 카드 역배치  (0) 2025.01.17
백준 | 1267 핸드폰 요금  (0) 2025.01.17

+ Recent posts