https://www.acmicpc.net/problem/1715시간 2초, 메모리 128MBinput :N (1 ≤ N ≤ 100,000)output : 최소 비교 횟수를 출력조건 :예를 들어 10장, 20장, 40장의 묶음이 있다면 10장과 20장을 합친