#P105. 【例19.1】 鸡兔同笼

【例19.1】 鸡兔同笼

Description

A cage contains chickens and rabbits (chickens have 22 legs, rabbits have 44 legs, and none are disabled). Given the total number of legs aa in the cage, determine the minimum and maximum number of animals that could be in the cage.

Input Format

One line containing a positive integer aa (a<32768a < 32768).

Output Format

One line containing two positive integers, the first being the minimum number of animals and the second being the maximum number of animals, separated by a space. If there is no valid answer, output two 00s separated by a space.

Sample

20
5 10