Help me in solving CBSPEED problem

My issue

what class name can I use for this problem?
its showing error in classname

My code

import java.util.Scanner;
class Chef
{
    public static void main(String args[])
    {
        Scanner sc=new Scanner(System.in);
        X=sc.nextInt();
        Y=sc.nextInt();
        if(X<Y)
        {
            System.out.println("YES");
        }
        else
        {
            System.out.println("NO");
        }
        
    }
}

Learning course: Practice Java
Problem Link: CodeChef: Practical coding for everyone

your class name is correct which starts with a capital letter pls provide a bit more detail about the error and also you need to declare X ,Y before using it
int X,Y;

1 Like

Already Solved this problem.Thanks for help