Play the exercise and select all tonic notes (1). The last note is tonic.