Arriving at the Dojo, you should bow as you enter the door and in a loud and clear voice say:
Onegaishimasu - Please teach me.
When leaving the Dojo at the end of class or for the day, you should bow once again and say:
Arigato Gozaimashita - Thank you very much.
Sayonara - Goodbye.