Heard that $eom$ is a fishing MASTER, you want to acknowledge him as your mentor. As everybody knows, if you want to be a MASTER's apprentice, you should pass the trial. So when you find fishing MASTER $eom$, the trial is as follow:
There are $n$ fish in the pool. For the $i$ - $th$ fish, it takes at least $t_i$ minutes to stew(overcook is acceptable). To simplify this problem, the time spent catching a fish is $k$ minutes. You can catch fish one at a time and because there is only one pot, only one fish can be stewed in the pot at a time. While you are catching a fish, you can not put a raw fish you have caught into the pot, that means if you begin to catch a fish, you can't stop until after $k$ minutes; when you are not catching fish, you can take a cooked fish (stewed for no less than $t_i$) out of the pot or put a raw fish into the pot, these two operations take no time. Note that if the fish stewed in the pot is not stewed for enough time, you cannot take it out, but you can go to catch another fish or just wait for a while doing nothing until it is sufficiently stewed.
Now $eom$ wants you to catch and stew all the fish as soon as possible (you definitely know that a fish can be eaten only after sufficiently stewed), so that he can have a satisfying meal. If you can complete that in the shortest possible time, $eom$ will accept you as his apprentice and say "I am done! I am full!". If you can't, $eom$ will not accept you and say "You are done! You are fool!".
So what's the shortest time to pass the trial if you arrange the time optimally?