Brandon spends his afternoon picking apples from an orchard. He notices that if he groups the apples he picked by 5's or 6's, then he ends up with 3 left over. If he groups by 7's or 8's, he has 5 left over. If Brandon knows that he picked between 1000 and 2000 apples, how many did he pick?