#P1418F. Equal Product
Equal Product
No submission language available for this problem.
Description
You are given four integers , , and .
Let's name a tuple as good if:
- ;
- ;
- ;
- .
Find any good tuple for each from to inclusive.
The first line contains two integers and ().
The second line contains two integers and ().
For each from to inclusive:
- if there are no such four integers, print ;
- otherwise, print four integers , , and . If there are multiple answers, print any of them.
Input
The first line contains two integers and ().
The second line contains two integers and ().
Output
For each from to inclusive:
- if there are no such four integers, print ;
- otherwise, print four integers , , and . If there are multiple answers, print any of them.