https://www.acmicpc.net/problem/1713시간 2초, 메모리 128MBinput :N (1 ≤ N ≤ 20)총 추천 횟수 (1 <= 추천 횟수 <= 1,000)학생의 번호 (1 <= 번호 <= 100)output :