                    running -= 1;
                }
            }
            if running <= 0 {
                break;
            }
            self.do_step();
        }
        steps[0].lcm(&steps[1].lcm(&steps[2]))
    }
}


fn main() {
    let mut sim = Simulation::from_stdin();