/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	static double withFloor(int i) {
		return i / Math.pow(10, 1 + Math.floor(Math.log10(i)));
	}
	
	static double withCeil(int i) {
		return i / Math.pow(10, Math.ceil(Math.log10(i)));
	}
	
	static void test(int i) {
		System.out.printf("input=%d\twithFloor=%s\twithCeil=%s%n", i, withFloor(i), withCeil(i));
	}
	
	public static void main (String[] args) throws java.lang.Exception
	{
		test(1);
		test(2);
		test(9);
		test(10);
		test(11);
		test(19);
		test(23);
		test(100);
		test(999);
	}
}