private int[] getNumbers () {
        boolean numberBegin = false;
        boolean addDigit = false;
        boolean isDigit;
        int numberBeginPos = -1;
        int[] vector;
        int position = 0;
        char eachChar;
        String vector1;
        String temporary = "";

        vector = new int[50];

        vector1 = this.input.nextLine();

        for (int counter = 0, stringLength = vector1.length(); counter < stringLength; counter += 1) {
            eachChar = vector1.charAt(counter);
            isDigit = Character.isDigit(eachChar);

            if (isDigit) {
                temporary += eachChar;
                numberBegin = !(counter == stringLength - 1);

                if (numberBegin) {
                    numberBeginPos = counter;
                }

                if (!numberBegin) {
                    addDigit = true;
                }
            }

            if (!isDigit && numberBegin) {
                addDigit = true;
                numberBegin = false;
            }

            if (addDigit) {
                addDigit = false;
                vector[position] = Integer.parseInt(temporary);

                if (numberBeginPos > 0 && vector1.charAt(numberBeginPos - 1) == '-') {
                    vector[position] *= - 1;
                    System.out.println(vector[position]);
                }

                position += 1;
                temporary = "";
            }
        }

        return vector;
    }