You want to take the numbers in as a String and then use String.split(" ")
to get the 3 numbers.
String input = scanner.nextLine(); // get the entire line after the prompt
String[] numbers = input.split(" "); // split by spaces
Each index of the array will hold a String representation of the numbers which can be made to be int
s by Integer.parseInt()