Personal Space
Each individual has their own belongings, interests, and personal space. Personal space is the area a person regards as their own, and any intrusion into it is perceived as a threat or an encroachment on their property.
When setting up the seating in the waiting room, the station management aimed to ensure maximum comfort for visitors. To achieve this, they consulted psychologists to determine the number R—the radius of personal space for station visitors. This number specifies how many empty seats should be left on both sides of a seated person to prevent discomfort. All seating is arranged in rows consisting of L seats per row.
The task is to determine the seating capacity of the waiting room, specifically the minimum and maximum number of visitors who can be seated in a row while ensuring that each person's personal space is respected and no additional person can be seated without violating this space.
Input
The input consists of a single line containing two natural numbers: L, the length of the row (1 ≤ L ≤ 10000), and R, the radius of personal space (1 ≤ R ≤ 10000).
Output
The output should be a single line with two natural numbers separated by a space—the minimum and maximum number of people who can be seated in a row while maintaining each person's personal space and ensuring no additional seating is possible under these conditions.
If part of a person's personal space extends beyond the row's boundaries, it is considered free.