If there are two parts of a name like "Adam sam rodriguez", Suppose sam rodriguez is the last name.

Can we say "There are two parts to the last name" or do we need to say "There are two parts for the last name" or "There are two parts of the last name" or "Last name has two parts"?.