Under construction

Still being built. Things may change

Sports Day

Interview

Time limit1sMemory limit512 MB

Summary
Given N teams of M members, a people still in the event, and K of them on Junhyeok's team, find the largest and smallest rank his team can have.
Level

Easy3 of 10

Topics
Math, Implementation
Solved
No attempts yet

Problem

Dankook University Affiliated Software High School (Dankook Sogo) is holding a sports day. The event is a team competition. A total of NN teams take part, and each team has MM members. At the end of each round, one of the remaining members is eliminated at random. A team is eliminated when all of its members are eliminated. The final rank of each team is determined by the reverse of the elimination order. The team eliminated last becomes the overall winner.

The event has progressed until aa people remain in total, and KK of them are on Junhyeok's team. Junhyeok wants to know the range of ranks his team can still get. The rank that Junhyeok's team can currently have is equal to (the number of remaining teams excluding Junhyeok's team + 1).

Given NN, MM, aa, and KK, find the largest and smallest ranks Junhyeok's team can currently have.

Input

The first line contains NN, MM, aa, and KK, separated by spaces. (1≤N,M≤109,1≤a≤N×M,1≤K≤M,K≤a)(1 \le N, M \le 10^9, 1 \le a \le N \times M, 1 \le K \le M, K \le a)

Output

On the first line, print the largest and smallest ranks Junhyeok's team can have, separated by a space.

Examples1

  1. Example 1

    Input
    30 5 51 3
    
    Expected output
    30 11