Marcus had 824 marbles and put them equally into 5 bags. How many marbles will be remaining after placing 164 marbles in each bag?