Switch scanfs over to cin