Codeforces Round 635 (Div. 2)
A
Ichihime and Triangle
Codeforces
800
原题
←B →
翻译中…

Ichihime is the current priestess of the Mahjong Soul Temple. She claims to be human, despite her cat ears.

翻译中…

These days the temple is holding a math contest. Usually, Ichihime lacks interest in these things, but this time the prize for the winner is her favorite — cookies. Ichihime decides to attend the contest. Now she is solving the following problem.

翻译中…

image

翻译中…

You are given four positive integers $a$, $b$, $c$, $d$, such that $a \leq b \leq c \leq d$.

翻译中…

Your task is to find three integers $x$, $y$, $z$, satisfying the following conditions:

翻译中…
  • $a \leq x \leq b$.
  • $b \leq y \leq c$.
  • $c \leq z \leq d$.
  • There exists a triangle with a positive non-zero area and the lengths of its three sides are $x$, $y$, and $z$.
翻译中…

Ichihime desires to get the cookie, but the problem seems too hard for her. Can you help her?

翻译中…

Input

翻译中…

The first line contains a single integer $t$ ($1 \leq t \leq 1000$)  — the number of test cases.

翻译中…

The next $t$ lines describe test cases. Each test case is given as four space-separated integers $a$, $b$, $c$, $d$ ($1 \leq a \leq b \leq c \leq d \leq 10^9$).

翻译中…

Output

翻译中…

For each test case, print three integers $x$, $y$, $z$  — the integers you found satisfying the conditions given in the statement.

翻译中…

It is guaranteed that the answer always exists. If there are multiple answers, print any.

翻译中…

Note

翻译中…

One of the possible solutions to the first test case:

翻译中…

image

翻译中…

One of the possible solutions to the second test case:

翻译中…

image

翻译中…

样例

Input #1
4
1 3 5 7
1 5 5 7
100000 200000 300000 400000
1 1 977539810 977539810
Output #1
3 4 5
5 5 5
182690 214748 300999
1 977539810 977539810
InputCopy OutputCopy
题目信息
题号
1337A
时间限制
1 s
内存限制
256 MB
标签
构造
数学

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。