Help me in solving AMR14BP problem

My issue

answer

My code

import java.util.*;
import java.lang.*;
import java.io.*;

class Codechef
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes her
		System.out.println("YES");
			System.out.println("NO");
				System.out.println("NO");
	}
}

Learning course: Design and Analysis of Algorithms
Problem Link: https://www.codechef.com/learn/course/kl-daa/KLDAA2422/problems/AMR14BP