eolymp
bolt
Try our new interface for solving problems
Problems

Revision of the store

Revision of the store

At revision of trade books is one of the store was flooded with entries in ink and have the following form: \includegraphics{https://static.e-olymp.com/content/87/8786997654582dbc15b1f574eb390ae4b398efd2.jpg} It was impossible to make out the number of sold meters, but there was no doubt that the number is not fractional, in the amount of the proceeds could distinguish only the last three digits, but still install that before them there were three some other figures. Can the audit committee should be established on this record? \InputFile In a single line are given four non-negative integers separated by spaces: \textbf{R_1} - meaning the number of Rubles in the price of cloth, \textbf{K_1} - meaning the number of cents in the price of cloth, \textbf{R_2} - the apparent number of Rubles spent in writing and \textbf{K_2} - the amount spent for all purchases cents (\textbf{0} ≤ \textbf{R_1}, \textbf{K_1}, \textbf{K_2} < \textbf{100}, \textbf{0} ≤ \textbf{R_2} < \textbf{10}). \OutputFile If you restore an entry is not printable \textbf{-1} if the commissioners could not reach a consensus on the restoration of records - display a message "\textbf{O-o-ops!}", If he managed to reach a consensus, we see three numbers separated by a space: first, the number of meters purchased fabric and then the purchase price, indicating first the number of rubles and kopecks spent. Use the output format as shown in the example.
Time limit 1 second
Memory limit 64 MiB
Input example #1
49 36 7 28
Output example #1
98 4837 28