Command of the Mayor
Easy
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
To ensure victory in the elections, the mayor decided to build a team of his friends, where everyone is a friend of each other. Knowing the relationship between an all N acquaintances mayor to build a team the greatest number of M. When the existence of multiple solutions is sufficient to derive only one of them.
Input
The first line is a single number N - the number of acquaintances Mayor (N < 50). In the second row - the number of K - the number of couples who have friendly relations. The following K lines through space-separated pair of numbers - numbers of friends.
Output
The first line of a single number - the largest squad of the mayor. The next line through the gap of the mayor's team in ascending numerical order.
Examples
Input #1
Answer #1
Submissions 1K
Acceptance rate 26%