## Alan is taking the bus!

View as PDF

Points: 5 (partial)
Time limit: 1.0s
Memory limit: 64M

Author:
Problem type

Alan lives in a strange neighbourhood with houses. In this neighbourhood, there are buses. Each of these buses can only ever travel between two select houses.

Since Alan likes to complain about his bus routes and will start complaining if he has to take more than two buses, help us determine if he can travel between two houses without complaint.

#### Input Specification

The first line will contain two integers, separated by spaces:

• : The number of houses in the neighbourhood.
• : The number of buses in the neighbourhood.

The next lines will contain two integers separated by spaces, and , denoting that there is a bus connecting house to house . The buses are two-directional (they can travel from to and from to ). There will never be a bus connecting the same house.

The next line will contain two integers, and , denoting the two houses that Alan wants to travel between.

#### Output Specification

On a single line, print yay! no complaint. if Alan can travel between the two houses using at most two buses. Otherwise, print aww man! whiny Alan..

#### Sample Input 1

3 2
1 2
2 3
1 3

#### Sample Output 1

yay! no complaint.

#### Sample Input 2

3 1
1 2
1 3

#### Sample Output 2

aww man! whiny Alan.