407113: GYM102697 084 Fine Tuned
Description
On a regular acoustic guitar, the open (regular) strings are tuned with these notes, starting from lowest to highest:
You can change these values into different notes using the tuning pegs on the top of the guitar, twisting it forwards or backwards to change the pitch of the strings. One full rotation of the peg would be equivalent changing the pitch by one semitone, or a half step in pitch. For instance, using the piano keys up above, F would move up to F#, or if moved down a semitone, would be moved down to an E.
When given certain note values, your job is to tune the song based on how many semitones you are given. This is known as transposing.
InputThe first line will contain an integer n which will denote the semitone value you are to transpose the piece to. The second line will contain a space-separated line of strings ranging from the notes A-G#.
OutputOutput a new line of the transposed piece, with each note being space-separated.
ExamplesInput-3 E A D G B EOutput
C# F# B E G# C#Input
3 E A D G B EOutput
G C F A# D G