puzzle = 2.60
doll = 3.00
bear = 4.10
minion = 8.20
truck = 2.00
price_of_the_excursion = float(input())
puzzle_count = int(input())
doll_count = int(input())
bear_count = int(input())
minion_count = int(input())
truck_count = int(input())
total_sum = (puzzle * puzzle_count) + (doll_count * doll) + (bear * bear_count) + (minion_count * minion) + (truck_count * truck)
total_count = puzzle_count + doll_count + bear_count + minion_count + truck_count
if total_count > 50:
total_sum = total_sum - (total_sum * 0.25)
total_sum = total_sum - (total_sum * 0.1)
diff = abs(price_of_the_excursion - total_sum)
if price_of_the_excursion <= total_sum:
print(f"Yes!{diff:2f} lv left")
else:
print(f"Not enough money!!{diff:2f} lv needed")
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}