#B3863. Stationery Purchase Feasibility

    ID: 11520 Type: Default 1000ms 256MiB

Stationery Purchase Feasibility

Stationery Purchase Feasibility

X pens at \(2\) yuan each, Y notebooks at \(5\) yuan each, and Z rulers at \(3\) yuan each need to be purchased. Given that Xiao Ming has \(Q\) yuan, determine if he has enough money to buy all the items he needs. Calculate the total cost using the formula:

\(Total\ Cost = 2X + 5Y + 3Z\)

If \(Q \geq Total\ Cost\), output "Yes"; otherwise, output "No".

inputFormat

The input contains four space-separated integers: X, Y, Z, and Q, where:
X: The number of pens required.
Y: The number of notebooks required.
Z: The number of rulers required.
Q: The amount of money Xiao Ming has.

outputFormat

Output a single word: "Yes" if Xiao Ming has enough money, or "No" if he does not.

sample

2 2 2 20
Yes