Title might not be very explanatory. If someone understands my situation please feel free to suggest an edit since I don't know how clear this is.
Because I have no idea where to start and have no experience in this, I think there won't be any pictures.
Anyway, I want to have a hopper as an input and have paper (labeled 1, 2, 3, 4 and 5) be thrown in the hopper. Then, the hopper takes the input (paper in this case) and sends it to 5 different hoppers each filled with papers labeled 1, 2, 3, 4 and 5. And then give a comparator output based on the paper you have thrown. And if it's neither of the labeled inputs given, the input gets thrown into a separate chest.
Again, not sure if I'm clear or not, but any help is appreciated. Thanks.