Jim has 167 apples, with 64 of them being in a room with only a small door. everyday he eats 3 apples from the heap and one from the room with the door. When he's finished with the heap, he takes two out of the room with the small door every other day. How long does it take him to eat all the apples?