a company organize meeting list n employee wait invite they arrange large circular table capable seating number employeesthe employee number 0 n 1 each employee favorite person attend meet sit favorite person table the favorite person employee themselfGiven 0indexe integer array favorite favoritei denote favorite person ith employee return maximum number employee invite meet Example 1input favorite 2212output 3explanationthe figure show company invite employee 0 1 2 seat round tableall employee invite employee 2 sit employee 0 1 3 simultaneouslynote company invite employee 1 2 3 desire seatsthe maximum number employee invite meet 3 Example 2input favorite 120output 3explanation each employee favorite person employee way company invite invite employeeThe seat arrangement figure give example 1 employee 0 sit employee 2 1 employee 1 sit employee 0 2 employee 2 sit employee 1 0the maximum number employee invite meet 3Example 3input favorite 30141output 4explanationthe figure show company invite employee 0 1 3 4 seat round tableemployee 2 invite spot favorite employee 1 takenSo company leave meetingthe maximum number employee invite meet 4 Constraintsn favoritelength2 n 1050 favoritei n 1favoritei