A regular expression \s+matches one or more spaces, so it will be splitin 4 values:
"12:40:11", "8", "5", "87"
Like a Java string literal, this template "\\s+".
If you want to get all 6 numbers, you also want to split into :, therefore, a pattern \s+|:. As a Java string literal, this is "\\s+|:".
References
Scanner
String.split java.util.Scanner useDelimiter , split. , int nextInt(), int ( , ).