Under construction

Still being built. Things may change

Meeting Near the Fountain

Time limit1sMemory limit1024 MB

Summary
Given the total distance, park entrance distance, and two scooter speeds, find how many minutes late Kira arrives (rounded up), or 0 if she is on time.
Level

Easy2 of 10

Topics
Implementation, Math
Solved
No attempts yet

Problem

Kira plans to meet her friend Anna after TT minutes. The meeting point is in the center of the park, near the fountain. The distance from Kira's current location to the meeting point is nn meters.

The path to the meeting point first goes through the city streets, and then through the park. Kira realized she could be late if she walked, so she took an electric scooter.

Kira rode the electric scooter through the city streets to the park entrance, a distance of mm meters, at a speed of xx m/s. The park is a pedestrian zone, where the speed of electric scooters is limited. Kira noticed that her scooter's speed dropped to yy m/s right after she entered the park.

Determine whether Kira reaches the meeting point on time. If she does not, find how many minutes Anna will wait for Kira.

Input

The first line contains two integers nn (500≤n≤10000500 \le n \le 10000) and TT (1≤T≤601 \le T \le 60), the distance in meters between Kira's start and the meeting point, and the number of minutes until the planned meeting.

The second line contains a single integer mm (100≤m≤9000100 \le m \le 9000, m≤nm \le n), the distance in meters between Kira's start and the park entrance.

The third line contains two integers xx and yy (3≤y<x≤93 \le y < x \le 9), the electric scooter's speed before the park entrance and in the park, respectively.

Output

If Kira reaches the meeting point on time, print a single integer 00.

If she is late, print a single integer LL, the number of minutes Anna will wait for Kira. Round this value up.

Examples1

  1. Example 1

    Input
    5000 10
    2500
    8 4
    
    Expected output
    6