#K2231. Can Emily Afford a Bicycle Rental?

    ID: 24691 Type: Default 1000ms 256MiB

Can Emily Afford a Bicycle Rental?

Can Emily Afford a Bicycle Rental?

Emily wants to rent a bicycle for \(N\) hours. There are two types of bicycles available: Type X costing \(P\) dollars per hour and Type Y costing \(Q\) dollars per hour. Given her total budget \(R\), determine if she can afford at least one of the bicycle rental options. Output Yes if she can rent any type for the required time without exceeding her budget, otherwise output No.

inputFormat

The input consists of four space-separated integers \(P\), \(Q\), \(N\), and \(R\), where:

  • \(P\) is the hourly cost for the Type X bicycle.
  • \(Q\) is the hourly cost for the Type Y bicycle.
  • \(N\) is the number of hours Emily intends to rent a bicycle.
  • \(R\) is Emily's total budget.

outputFormat

Output a single line: Yes if Emily can afford to rent at least one type of bicycle for \(N\) hours within her budget \(R\), otherwise output No.

## sample
20 15 5 100
Yes