import random

# Safe initial values.
low = 1000000
high = 1

# Generate 500 nums.
for i in range(500):

    # This is a random number.
    tmp = random.randint(1, 1000000)

    # Update our low and high as necessary.
    if tmp > high:
        high = tmp
    if tmp < low:
        low = tmp

# Print both
print(low, high)
