<code>

import static java.lang.System.out;
import java.util.Scanner;
class apples{
public static void main(String args[]){

Scanner myscanner = new Scanner(System.in);
int num1, num2, num3;
out.println("Enter your First Number : ");
num1 = myscanner.nextInt();
if (num1 == 7){
out.println("Enter Your Second Number : ");
num2 = myscanner.nextInt();
}else{
out.println("Enter Your Third Numner : ");
num3 = myscanner.nextInt();
}
out.println("HEY MY FRIEND,YOU DID IT PERFECTLY WELL!! CONGRATULATION.");
}
}
</code>

i am so glad :D ;)