Given a phrase describing the relationship between two words, extract the words and the lexical relationship between them. The relation has to be of the type 'MemberOf', 'MadeOf', 'Synonym', 'Entails', 'HasA', 'HasProperty', 'PartOf', 'Antonym' or 'IsA'. The output should have the format: word1 relation word2.

[EX Q]: Head is a kind of object
[EX A]: head IsA object

[EX Q]: pain can be used as the opposite of pleasure
[EX A]: pain Antonym pleasure

[EX Q]: baby can be characterized by ugly
[EX A]:
baby HasProperty ugly