#include <stdio.h>
#include <string.h>
int main(void){
char message[] = "Einstein, 1900 $$$ Mozart, 1700 $$$ Michi, 1982 $$$ John, 1940";
char seps[5] = "$$$";
char *token
= strtok(message
, " ");
while ((token
= strtok(NULL
, seps
)) != NULL
){ }
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KCmludCBtYWluKHZvaWQpewoJY2hhciBtZXNzYWdlW10gPSAiRWluc3RlaW4sIDE5MDAgJCQkIE1vemFydCwgMTcwMCAkJCQgTWljaGksIDE5ODIgJCQkIEpvaG4sIDE5NDAiOwoJY2hhciBzZXBzWzVdID0gIiQkJCI7CgljaGFyICp0b2tlbiA9IHN0cnRvayhtZXNzYWdlLCAiICIpOwoJcHJpbnRmKCIgJXMgIiwgdG9rZW4pOwoKCXdoaWxlICgodG9rZW4gPSBzdHJ0b2soTlVMTCwgc2VwcykpICE9IE5VTEwpewogICAgICAgIHByaW50ZigiJXMgXG4iLCB0b2tlbik7Cgl9CgoJcmV0dXJuIDA7Cn0=