What nonmetals gain electrons?

All non-metals gain electrons except for the noble (or inert) gases of group 18 which don't readily react to anything.