import java.util.ArrayList; import java.util.Scanner; public class YourName { public static void main(String[] args) { Scanner s = new Scanner(System.in); int N = s.nextInt(); long K = s.nextLong(); ArrayList D = new ArrayList<>(); for(int i = 0;i 0 && i != D.get(i-1)){ while(true){ int t = D.get(i-1); D.set(D.indexOf(i), 0); if(t == 0){ break; } i = t; K--; } } } if(K > 0&&K%2 == 0){ K = 0; } if(K == 0) System.out.println("YES"); else System.out.println("NO"); } }