Input (grade 4): Robert Tannahill wrote the words in 1805 and James Barr composed the music in 1818.
Output (grade 3): Robert Tannahill wrote the words in 1805 and James Barr wrote the music in 1818.