fixed the input problem
fixed print statement in first come first serve