KAUSH - Seperate the number

no tags 

Given a Number (maximum 4 digits after the decimal place), Shailvi needs to separate the integer part and the decimal part. Can you help her? :D

Input

The input begins with the number t of test cases in a single line (t<=1000). In each of the next t lines there is 1 number (comprising of maximum 4 digits after the decimal place).

Output

For every test case print two numbers per line, the integer part and the fraction part (separated by a space.)

Example

Input:
3
25.0001
4999.9998 525.023 Output: 25 1
4999 9998
525 23

hide comments
Kaushik: 2014-12-12 08:26:45

moved to tutorial.

abdou_93: 2014-12-12 08:26:45

plz .. remove it .


Added by:Kaushik
Date:2014-04-21
Time limit:0.100s-1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All
Resource:Own Problem