安徽科技学院程序设计在线考试系统Ver2.3

诚信考试,杜绝作弊!

问题 C: Repetitive Processing - Swapping Two Numbers

内存限制:512 MB 时间限制:1 S 标准输入输出
题目类型:传统 评测方式:文本比较

题目描述

Swapping Two Numbers 

Write a program which reads two integers x and y, and prints them in ascending order.

输入格式

The input consists of multiple datasets. Each dataset consists of two integers x and y separated by a single space. 

The input ends with two 0 (when both x and y are zero). Your program should not process for these terminal symbols.

输出格式

For each dataset, print x and y in ascending order in a line. Put a single space between x and y.

输入样例 复制

3 2
2 2
5 3
0 0

输出样例 复制

2 3
2 2
3 5

数据范围与提示

0 ≤ x, y ≤ 10000 

the number of datasets ≤ 3000