Haebin loves jjajangmyeon so much that he opened a Chinese restaurant selling nothing else. He is ambidextrous, so he can hold two woks at once and cook with both in a single round.

A wok
Haebin hates waste, so he always fills a wok completely. A round that uses one wok produces exactly that wok's size in bowls, and a round that uses two woks produces exactly the sum of the two sizes. A wok that holds 4 bowls produces 4 bowls, never 3 and never 5. The two woks used together must be two different woks, so he can produce 2c bowls in one round only when he owns two woks of size c. A wok is free again once its round ends, and he can reuse it as many times as he likes.
The order is exactly N bowls, and the bowls produced over all rounds must add up to N.
Say the order is 5 bowls and the woks have sizes 1 and 3. Haebin first uses the size 1 wok and the size 3 wok together for 4 bowls, then the size 1 wok alone for 1 bowl, filling the order in two rounds.
Given the number of bowls ordered and the sizes of the woks, find the smallest number of rounds that fills the order.