Scanner не выполняет nextLine() после next() или nextInt() (nextShort(), nextByte())