valves for small block 587 heads

Rockauto has them Melling or Sealed Power are good names.
so i was looking and they have 2 and 4 groove on both intake and exhaust valves.. sorry im still learning, but how do i know which i need?