In this task you will be given two dialogues. You need to determine if both dialogues have the same underlying emotion. The possible emotions are happy, sad, angry, or other. If they do output 'yes', if not output 'no'.

Example Input: Dialogue 1: 'yougrinningfacewithsweat really lolfacewithtearsofjoyfacewithtearsofjoy gm facewithtearsofjoyfacewithtearsofjoyfacewithtearsofjoy i own youfacewithtearsofjoy'. Dialogue 2: 'not going why not health is poor  my'.
Example Output: no

Example Input: Dialogue 1: 'hy i my good momslightlysmilingface good noon foldedhands beamingfacewithsmilingeyes'. Dialogue 2: 'emotional songs listen to snow patrol's 'you could be happy' man i am happy'.
Example Output: yes

Example Input: Dialogue 1: 'm suffering from 5 decease at atime try eating your meals slower hm'. Dialogue 2: 'no other half thanks you're very welcome  by'.
Example Output:
yes