Blood types are determined by