For this Question: Solo likes to solve simple problems, but this time she is stuck with an easy problem she created herself. Since she cannot visit her friends currently (neither should you), can you code this problem for her? The problem is short and sweet.

Given an integer n, can you find the smallest n-digit number that is divisible by both 3 and 7? (Of course, the number cannot begin with a 0)The only line of input contains a single integer n, the number of digits in the required number.
 
Constraints
2 <= n <= 100000Output a single integer, the required n digit number. (The answer may not fit into 32 or 64 bit data types).Sample Input 1
2

Sample Output 1
21

Sample Input 2
4

Sample Output
1008

Explanation 1: 21 is the first 2 digit number divisible by both 3 and 7., I have written this Solution Code: import java.io.*;
import java.util.*;



class Main {
	public static void main (String[] args)throws IOException {

	 BufferedReader rdr = new BufferedReader(new InputStreamReader(System.in));
	 long n = Long.parseLong(rdr.readLine());


	 if(n==0 || n==1){
		 return ;
	 }
	 if(n==2){
		 System.out.println(21);

	 }
	 else{

		 StringBuilder str= new StringBuilder();

         str.append("1");

		 for(long i=0;i<n-3;i++){

			 str.append("0");
		 }

		 if(n%6==0){

			 str.append("02");
			 System.out.println(str.toString());

		 }
		 else if(n%6==1){
			 str.append("20");
			 System.out.println(str.toString());

		 }
		 else if(n%6==2){
			  str.append("11");
			 System.out.println(str.toString());

		 }
		 else if(n%6==3){
			  str.append("05");
			 System.out.println(str.toString());

		 }
		  if(n%6==4){
			  str.append("08");
			 System.out.println(str.toString());
			 return;
		 }
		 else if(n%6==5){
			  str.append("17");
			 System.out.println(str.toString());

		 }
	 }
	}
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?