Under construction

Still being built. Things may change

Rectangle

Time limit1sMemory limit1024 MB

Summary
Given a rectangle's perimeter in meters and centimeters and the centimeter difference d between its sides, output the two side lengths.
Level

Easy2 of 10

Topics
Math, Implementation
Solved
No attempts yet

Problem

A professor measured the sides of a rectangle with a measuring tape. He immediately calculated that the perimeter is x meters and y centimeters, and that one side is longer than the other by d centimeters. Absent-minded, he remembered x, y, and d but forgot where he wrote down the dimensions. Write a program rectangle that takes x, y, and d and finds the dimensions of the rectangle.

Input

The first line contains the integers x and y. The second line contains the integer d.

Output

Print the two dimensions on two lines, in meters and centimeters. Each line contains two non-negative integers separated by a single space: the first is meters, the second is centimeters.

Constraints

The dimensions do not exceed 999 999 999 meters.

Examples1

  1. Example 1

    Input
    11 40
    70
    
    Expected output
    3 20
    2 50