About

while (ALIVE && FREE) {
    ivan++;
}