private void lifeCycle() {
			String s = "";

			int attempt_number = 0;

			do {
				try {
					s = readInput();
					if (s.length()==0) {
						break;
					}
					if (isValidInput(s))
					{
						results[attempt_number] = getCalculationResult(Integer.parseInt(s));
						attempt_number++;
					} else {
						System.out.println(MSG_ONLY_DIGITS);
					}
				} catch (IOException e) {
					e.printStackTrace();
				}
			} while (attempt_number<=VALUE_ITERATIONS_NUMBER-1);
			printResults();
		}