Recognition of individual elements in a compound