Thermoelectric Properties of a Nanocontact