Two equally frequent values

Write a program to find the first line of the input where two different values appear the same number of times.

Input

The input comes in standard input stdinstdin and consists of zero or more integers separated by blank spaces and organized into zero or more nonempty lines.

Output

The output must have the form "Line: ’...’ has some equally frequent values" where the dots must be replaced by the first line in the input in which there are two or more different values that appear with the same nonzero frequency; or, if no such line exists in the input, the message "No line has equally frequent values". Make sure that the output format matches the examples.

Problem information

Author: José Luis Balcázar

Generation: 2026-01-25T19:26:38.426Z

© Jutge.org, 2006–2026.
https://jutge.org