import java.util.Scanner;
/**
*
* @author top
*/
public class Main {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
Scanner scanner = new Scanner(System.in);
float inputNum=scanner.nextFloat();
System.out.println(inputNum);
String str_inputNum=String.valueOf(inputNum);
int count_inputNum=str_inputNum.length();
// System.out.println(count_inputNum);
int intNum=(int)inputNum;
System.out.println(intNum);
String str_intNum=String.valueOf(intNum);
int count_intNum=str_intNum.length();
// System.out.println(count_intNum);
float floatNum=inputNum-(float)intNum;
int count_floatNum=count_inputNum-count_intNum-1;
System.out.printf("%."+count_floatNum+"f",floatNum);
}
}