def find_synonyms(tree):
    """prints the synonyms for a given word"""
    synonyms = []
    synonyms_html = tree.find('div', {'class':
        'card-box small-box related-box end'})
    if synonyms_html:
        synonyms_html = synonyms_html.find('div', {'class': 'definition-block'}
            )
        synonyms_str = synonyms_html.get_text()
        synonyms_str = synonyms_str[synonyms_str.find('Synonyms') + len(
            'Synonyms '):synonyms_str.find('Antonyms')]
        synonyms.append(synonyms_str)
    return synonyms
