num_read = 0
print("This program reads 4 numbers and will print the biggest one")
print("How many numbers do you want to compare")
ole = int(input())
request = "Give me a number that you want to compare"
error = "That was not a valid number"
max = 0
while num_read < ole:
    try:
        read_line = input(request)
        num = float(read_line)
    except ValueError:
        print(error)
        continue
    if num_read == 0:
        max = num
    elif num > max:
        max = num
    num_read += 1
print("The biggest number read was ", max)