def tradueix(s):
    if 'Mr.' not in s and 'Ms.' not in s:
        return 'error'
    else:
        pospunt = s.find('.')
        nom = s[pospunt+1:-1]
        nommaj = nom.upper()
        s = s.replace(nom,nommaj)
        s = s.replace('Dear','Benvolgut/da')
        s = s.replace('Hi','Hola')
        s = s.replace('Mr.','Sr.')
        s = s.replace('Ms.','Sra.')
        return s
