Blood grouping in human beings is derived from combinations of