PHƯỚC HƯNG OJ · THỬ THÁCH THUẬT TOÁN
#GL0000287. Mã hóa đáng ngờ (Dubious Crypto)
HỌC THEO LỘ TRÌNH
1 lộ trìnhBài tập thuộc lộ trình
Mục lục đề ⌄
Đang đọc
Mã hóa đáng ngờ (Dubious Crypto)
Dubious Crypto
Source: Codeforces
Version: Phuoc Hung OJ Extended
Problem Statement
Pasha encrypts a secret positive integer by choosing three integers in and computing . Given , find any valid triple for which some positive integer satisfies the equation. A solution is guaranteed to exist.
Input
One line contains three integers , in that order.
Output
Print three space-separated integers , all in , satisfying the equation for some positive integer .
Subtasks
- Subtask 1 (20 points): ; ; a solution exists.
- Subtask 2 (30 points): ; ; a solution exists.
- Subtask 3 (50 points): ; ; a solution exists.
Examples
Input
4 6 13
Output
4 6 5
Explanation
For , choose since and all entries lie in .
Input
2 3 1
Output
2 2 3
Explanation
For , choose and , giving .