Write a program to input a sequence of n integers from the keyboard. The distance between two numbers is defined as the distance between the two points representing them on a number line. Print to the screen:
The two numbers with the greatest distance and their distance.
The two consecutive numbers in the sequence with the smallest distance and their distance.
(Note: If there are multiple pairs that satisfy the condition, print the first pair based on their order in the sequence).