Following diagram performs the logic function of