For this Question: You are given a number N. If any digit from 1 to 9 occurs consecutive for more than or equal to 3 times, this number is awesome. Example: 12333, 211115, 555 are awesome numbers while 11211, 3456 are not. A number which is not awesome is considered good.

You are given a number N, find out whether it is awesome or good.The first and the only line of input contains the number N.

Contraints
100 <= N <= 1000000000 (10^9)
Output "Awesome", if the number is awesome, else output "Good".Sample Input 1
12333

Sample Output 1
Awesome

Sample Input 2
11211

Sample Output 2
Good

Explanation: In the first number, 3 occurs consecutively 3 times while in the second number, no digit appears 3 or more times consecutively., I have written this Solution Code: import java.io.*;
import java.util.*;



class Main {
	public static void main (String[] args)throws Exception {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int n=Integer.parseInt(br.readLine());
		int count=0,max=0;
		String s=String.valueOf(n);
		if(s.length()<3){
			System.out.print("Good");
			return;
		}
		for(int i=0;i<s.length()-1;i++){
			count++;
			if(s.charAt(i)!=s.charAt(i+1)){
				max=Math.max(max,count);
				count=0;
			}
		}
		if(s.charAt(s.length()-2)==s.charAt(s.length()-1)){
			count++;
			max=Math.max(max,count);
		}
		if(max>=3){
			System.out.print("Awesome");
			return;
		}
		System.out.print("Good");
	}
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?