Inspired by this xkcd
You work for Shazam and they have a project for you. Some customers are complaining about their app taking up too much space on their phone, so they want you to code a lite version of the app. Unfortunately, your existing code can only understand the word "na", and you have to ship soon. That's okay, we'll do the best with what we've got.
The Challenge
You must write a full program that takes a user input, or takes a command line argument, and print the title and artist of the song. Since we are trying to fix customers complaining about program size, your code must be as short as possible. The input will be a string consisting entirely of na's, with a single space between them. Lowercase/uppercase is arbitrary. This is considered a valid input: Na Na nA na NA
This is an invalid input: nah nah NA naNa banana
You must determine what song is playing and print it out in exactly this format:
Song: <trackname>
Artist: <artist>
If the input is exactly 8 na's, this matches two separate songs, so you must print both:
Song: Batman Theme
Artist: Neal Hefti
and
Song: Na Na Hey Hey Kiss Him Goodbye
Artist: Steam
If the input is exactly 10 na's, you must print:
Song: Katamari Damacy
Artist: Yuu Miyake
If the input is exactly 11 na's, you must print:
Song: Hey Jude
Artist: The Beatles
If the input is 12 or more na's, you must print
Song: Land Of 1000 Dances
Artist: Wilson Pickett
Lastly, if the input is invalid, there are less than 8 na's, or any of the words are not "na", your program fails to understand the music. So logically, there is only one other song that it could possibly be. You must print:
Song: Africa
Artist: Toto
As usual, standard loopholes apply, and the shortest answer in bytes wins.
na
s? I just listened to it and I thought it was (in terms of note lengths)quarter quarter quarter quarter / eighth sixteenth sixteenth quarter-quarter-quarter / eighth sixteenth quarter-quarter-quarter
, which is 12na
s. \$\endgroup\$onnnnnnnnne-one-three-one-a-two-threeeeeeeeeee-one-a-two-threeeeeeee-hey-jude
definitely 11 \$\endgroup\$na na / na na / na na / na na
x2batman
. I noticed that the second time I saw the comic. \$\endgroup\$