Unable to run the code in CB window

import java.util.Scanner;

public class MM_2 {

public static void main(String[] args) {

	
	// your code goes here
	Scanner s = new Scanner(System.in);
	int n=s.nextInt();
	System.out.println("1");
	int i=2;
	while(i<=n){
		for(int j=1;j<=i;j++){
			if(j==1 || j==i){
				System.out.print(i-1);
              }
			else{
				System.out.print("0");
			}
		}
		System.out.println();
		i++;
	}
	
	
}

}

after this i click on “Run code” and get the following errors

Output : Error

Exception in thread “main” java.util.NoSuchElementException at java.base/java.util.Scanner.throwFor(Scanner.java:937) at java.base/java.util.Scanner.next(Scanner.java:1594) at java.base/java.util.Scanner.nextInt(Scanner.java:2258) at java.base/java.util.Scanner.nextInt(Scanner.java:2212) at MM_2.main(MM_2.java:10)

Click on provide custom input and then run your code