Inconsistent Patterns
시간 제한2초메모리 제한1024 MB
두 팀이 N개 분야에서 푼 문제 수와 시도한 문제 수를 정해, 한 팀이 모든 분야에서 이기지만 전체로는 지도록 만든다.
문제
The Simpson's Paradox is a phenomenon in statistics where a trend or pattern that appears in different groups of data is inconsistent (disappears or even reverses) with what we see when the groups are combined. It is named after the British statistician Edward H. Simpson, who described it in 1951, although similar observations had been made earlier.
For example, let assume that two teams have been training for the UKIEPC 2024 and have the following statistics for the graph and geometry problems:
- Team X has solved 81 out of 87 graph problems (success rate of approx 93%), and 192 out of 263 geometry (73%). Total is 273 out of 350 problems (78%).
- Team Y has solved 234 out of 270 graph problems (87%), and 55 out of 80 geometry (69%). Total is 289 out of 350 (83%).
If we look per category --- team X has higher success rate in both categories, but when looking in combination, the pattern reverses, and team Y appears to have higher success rate.
In this problem you are to construct an example of the dataset illustrating the Simpson’s paradox. More specifically, let us assume (similarly to the example above) that there are two teams who have been solving problems of categories and the total number of problems solved by each of the teams is . Let us denote the number of the problems in -th category solved by Team X as , attempted --- by . Similarly, let us define as the number of problems solved by Team Y in the -th category and as the number of problems attempted.
You are to find such , , and that:
- for all from to
- for all from to
- for all from to
- for all from to
입력
Input file contains two integer numbers and (, ).
출력
Output lines --- -th of them should contain four positive integer numbers , , , , describing the dataset. Input data is selected in such a way that the solution exists.