Help me in solving ONEFULPAIRS problem

My issue

solution of this in java

My code

/* package codechef; // don't place package name! */

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

/* Name of the class has to be "Main" only if the class is public. */
class Codechef
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner sc=new Scanner(System.in);
		int a=sc.nextInt();
		int b=sc.nextInt();
		if(a, b=111){
		System.out.println("Yes");
		}
		else{
		System.out.println("NO");
		}
}
}

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

@apeksha_98
U have to do it like this

/* package codechef; // don't place package name! */

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

/* Name of the class has to be "Main" only if the class is public. */
class Codechef
{
	public static void main (String[] args) throws java.lang.Exception
	{
		int a,b;
		Scanner sc= new Scanner(System.in);
		a=sc.nextInt();
		b=sc.nextInt();
		int c = a+b + (a*b);
		if(c==111)
		System.out.println("yes");
		else
		System.out.println("no");
	}
}