#include <bits/stdc++.h>
using namespace std ;
const int N = 2010 , M = 6010 ;
int h[N] , ne[M] , e[M] , idx;
int n , m , k ;
int f[N] ; // 记录当前节点是必胜态还是必败态。
void add(int a , int b )
{
e[idx] = b , ne[idx] = h[a] , h[a] = idx ++ ;
}
int SG(int x )
{
if(f[x] != -1 ) return f[x] ;
unordered_set<int> S ;
for(int i = h[x] ; ~i ; i = ne[i] )
{
int j = e[i] ;
S.insert(SG(j)) ;
}
for(int i = 0 ; ; i ++ )
{
if(!S.count(i))
{
f[x] = i ;
return i ;
}
}
}
int main()
{
cin >> n >> m >> k ;
memset(h , -1 , sizeof h ) ;
for(int i = 0 ; i < m ; i ++ )
{
int a , b ;
cin >> a >> b ;
add(a , b ) ;
}
memset(f , -1 , sizeof f ) ;
int res = 0 ;
for(int i = 0 ; i < k ; i ++ )
{
int id ;
cin >> id;
res ^= SG(id) ;
}
if( res ) puts("win") ;
else puts("lose") ;
return 0 ;
}