Online Programming Server

Login

Login with facebook [?]

Facebook

Contest 1001: BISTU 20110904 In-school contest - Problem 1064: C hicken and rabbit s

Problem ID 1064
Title C hicken and rabbit s
pdf  
Description
Chicken and rabbits are in a same cage. As we all know, chicken has two legs but rabbit has four. Now
we know the number of legs in the cage is A, please tell me how many animals may in the cage at least
and at most.

Input
The first line of the input contains the number of test cases in the file. Each test case that follows
consists of one lines. each case contains only one integer numbers A specifying the total legs in the
cage .

Output

For each test case, print a line contains the answer

Sample Input
2
3
20
Sample Output
0 0
5 10
Hint
Last Modified 2012-04-11 00:34:13
Time Limit 1 seconds
Memory Limit 32 MB
Accepted Solutions 1
Submitted Solutions 1
Difficulty Factor 0