Under construction

Still being built. Things may change

Christmas Tree Adapter

Time limit5sMemory limit1024 MB

Summary
Given a tree's ampere and an adapter's watt and volt, the task is to print 1 if the adapter's ampere (watt divided by volt) is at least the tree's ampere, otherwise 0.
Level

Easy1 of 10

Topics
Math, Implementation
Solved
No attempts yet

Problem

Adapters (transformers) are used with many devices, such as cell phones, to convert the 110 volt coming out of the outlet. The adapter for Dr. O's Christmas tree broke, and Dr. O could not find that model online or in stores. The tree adapter showed "ampere", but the adapters online showed "watt" and "volt". So Dr. O had to consult the "Electricity 101 Book" to figure out what to buy:

  • Watt: measure of power
  • Volt: measure of electric potential
  • Ampere: measure of current
  • watt=ampere×voltwatt = ampere \times volt, so ampere=wattvoltampere = \frac{watt}{volt}

Given the ampere for Dr. O's Christmas tree and the watt and volt for a candidate adapter, determine whether the candidate adapter will work with the tree. The adapter will work if its ampere is greater than or equal to the tree's ampere.

Input

The first line contains an integer aa (1≤a≤201 \le a \le 20), the ampere for the Christmas tree. The second line contains two integers: ww (1≤w≤20001 \le w \le 2000), the watt for the candidate adapter, and vv (1≤v≤1001 \le v \le 100), the volt for the candidate adapter. Assume that the input will not result in fractions in divisions.

Output

Print 1 if the candidate adapter will work with the tree, 0 (zero) otherwise.

Examples3

  1. Example 1

    Input
    5
    60 10
    
    Expected output
    1
    
  2. Example 2

    Input
    7
    80 20
    
    Expected output
    0
    
  3. Example 3

    Input
    3
    120 40
    
    Expected output
    1