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

			int attempt_number = 0;

			do {
				try {
					s = readInput();
					if (s.length()==0) {
						break;
					}
					action(s);
					attempt_number++;
				} catch (IOException e) {
					e.printStackTrace();
				}
			} while (attempt_number<=VALUE_ITERATIONS_NUMBER-1);
			printResults();
		}