Classification of simple amalgams