#include <stdio.h>
int main () {
char frase[200];
scanf(" %[^\n]200s", frase
); char *palavra;
char c;
for (palavra = (char *)0; (c = *frase); ((char *)frase)++) if (c == ' ') palavra = (char *)frase;
}
//https://pt.stackoverflow.com/q/271902/101
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbiAoKSB7CiAgICBjaGFyIGZyYXNlWzIwMF07CiAgICBzY2FuZigiICVbXlxuXTIwMHMiLCBmcmFzZSk7CiAgICBjaGFyICpwYWxhdnJhOwogICAgY2hhciBjOwogICAgZm9yIChwYWxhdnJhID0gKGNoYXIgKikwOyAoYyA9ICpmcmFzZSk7ICgoY2hhciAqKWZyYXNlKSsrKSBpZiAoYyA9PSAnICcpIHBhbGF2cmEgPSAoY2hhciAqKWZyYXNlOwogICAgcHJpbnRmKCIlcyIsIHBhbGF2cmEpOwoKfQoKLy9odHRwczovL3B0LnN0YWNrb3ZlcmZsb3cuY29tL3EvMjcxOTAyLzEwMQ==