public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = "";
		diffWays(30002);
		d: do {
			line = br.readLine();
			if (line == null || line.length() == 0)
				break d;
			double amount = Double.parseDouble(line);
			int ra = (int) ((amount * 100)+0.5);
			if (amount == 0)
				break;
			System.out.printf(Locale.US, "%6.2f", amount);
			System.out.printf(Locale.US, "%17d\n", dp2[ra]);
		} while (line != null && line.length() != 0);
	}