Determine the largest, the smallest and the number of triplicates (multiples of 3) in a sequence of numbers.

Input

Ten positive integers, each on a separate line.

Output

The largest, the smallest and the number of triplicates.

Example

Input:

656
452
555
726
924
863
939
831
616
406

Output:

largest: 939
smallest: 406
triplicates: 5