The first line of the input contains integer numbers n, m, a1, b1, a2, b2. Here n (3 <= n <= 100) is a number of cities in the Kingdom (cities are numbered from 1 to n); m (2 <= m <= 1000) is a number of magic portals; a1, b1 (1 <= a1, b1 <= n, a1 != b1) are the neighboring cities where Albert and Betty correspondingly start their travel from; a2, b2 (1 <= a2, b2 <= n, a2 != b2) are the neighboring cities where Albert and Betty correspondingly want to get to (a1 6= a2 or b1 != b2). Following m lines describe the portals. Each line contains two numbers pi1 and pi2 (1 <= pi1, pi2 <= n, pi1 != pi2) -- cities that are connected by the portal. There is at most one portal connecting two cities.