import java.util.*;
public class A1{
public static void main(String[] args){
String first; //输入的double类型的值
Long zs; //整数部分
Short xs; //小数部分
//输入值
Scanner qq = new Scanner(System.in);
System.out.println("请输入一个double类型值");
first = qq.next();
//取整数、小数并转化为Long、Short类型
zs = Long.parseLong(first.substring(0, first.indexOf(".")));
xs = Short.parseShort(first.substring(first.indexOf(".") + 1, first.indexOf(".") + 5));
//输出
System.out.println(zs);
System.out.println(xs);
}
}