CF286E Ladies' Shop
Description
A ladies' shop has recently opened in the city of Ultima Thule. To get ready for the opening, the shop bought $ n $ bags. Each bag is characterised by the total weight $ a_{i} $ of the items you can put there. The weird thing is, you cannot use these bags to put a set of items with the total weight strictly less than $ a_{i} $ . However the weights of the items that will be sold in the shop haven't yet been defined. That's what you should determine right now.
Your task is to find the set of the items' weights $ p_{1},p_{2},...,p_{k} $ $ (1
Input Format
The first line contains space-separated integers $ n $ and $ m $ ( $ 1
Output Format
In the first line print "NO" (without the quotes) if there isn't set $ p_{i} $ , that would meet the conditions.
Otherwise, in the first line print "YES" (without the quotes), in the second line print an integer $ k $ (showing how many numbers are in the suitable set with the minimum number of weights), in the third line print $ k $ space-separated integers $ p_{1},p_{2},...,p_{k} $ $ (1