#include <stdio.h>
#include <string.h>
char tracks[][80] = {
"I left my heart in Harvard Med School",
"Newark, Newark - a wonderful town",
"Dancing with a Dork",
"The girl from Iwo Jima",
};
void find_track(char search_for[]) {
search_for
[strcspn(search_for
, "\n")] = 0; for (int i = 0; i < 5; i++) {
if (strstr(tracks
[i
], search_for
)) { printf("Track %i: '%s'\n", i
, tracks
[i
]); }
}
}
int main() {
char search_for[80];
fgets(search_for
, 80, stdin
); find_track(search_for);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KCmNoYXIgdHJhY2tzW11bODBdID0gewogICAgIkkgbGVmdCBteSBoZWFydCBpbiBIYXJ2YXJkIE1lZCBTY2hvb2wiLAogICAgIk5ld2FyaywgTmV3YXJrIC0gYSB3b25kZXJmdWwgdG93biIsCiAgICAiRGFuY2luZyB3aXRoIGEgRG9yayIsCiAgICAiVGhlIGdpcmwgZnJvbSBJd28gSmltYSIsCn07Cgp2b2lkIGZpbmRfdHJhY2soY2hhciBzZWFyY2hfZm9yW10pIHsKCXNlYXJjaF9mb3Jbc3RyY3NwbihzZWFyY2hfZm9yLCAiXG4iKV0gPSAwOwogICAgZm9yIChpbnQgaSA9IDA7IGkgPCA1OyBpKyspIHsKICAgICAgICBpZiAoc3Ryc3RyKHRyYWNrc1tpXSwgc2VhcmNoX2ZvcikpIHsKICAgICAgICAgICAgcHJpbnRmKCJUcmFjayAlaTogJyVzJ1xuIiwgaSwgdHJhY2tzW2ldKTsKICAgICAgICB9CiAgICB9Cn0KCmludCBtYWluKCkgewogICAgY2hhciBzZWFyY2hfZm9yWzgwXTsKICAgIHByaW50ZigiU2VhcmNoIGZvcjogIik7CiAgICBmZ2V0cyhzZWFyY2hfZm9yLCA4MCwgc3RkaW4pOwogICAgZmluZF90cmFjayhzZWFyY2hfZm9yKTsKICAgIHJldHVybiAwOwp9