h,m=map(int,input().split());t=60*h+m;print((t<510)*"LYaetse"[t<450::2]or"No")