2278: 最高和最低位

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:28 Solved:0

Description

小X最近在研究数字,他要一个三位数的最高位和最低位取出,请编程实现。

Input

输入一个整数(三位数)

Output

输出两个整数

Sample Input Copy

123

Sample Output Copy

1 3

Source/Category