#!/usr/bin/python
# coding=utf-8
# Halbierungsmethode (Wurzelfindung)
# (c) Sebastian Hemel, www.shemel.de
#-----------------------------------------------------------------------------------

z=float(input("Zahl ? "))
l=float(input("Linke Grenze ? "))
r=float(input("Rechte Grenze ? "))
n=float(input("Durchläufe ? "))

i=1
while i<=n:
	m=(l+r)/2
	if m**2<z:
		l=m
	else:
		r=m
	print(i, l, r)
	i=i+1