#include <unistd.h>
#include <stdio.h>
int is_whitespace(char c)
{
//printf("%c", c);
if(c == '\t' || c == '\n' || c == '\r' || c == ' ')
return (1);
else
return (0);
}
int main(int argc, int **argv)
{
int i;
i = 0;
if(argc == 2)
{
while(is_whitespace(argv[1][i]) == 1)
i++;
while(is_whitespace(argv[1][i]) == 0 && argv[1][i] != 0)
{
write(1, &(argv[1][i]), 1);
//printf("%c", argv[1][i]);
i++;
}
}
write(1, "\n", 1);
}
I2luY2x1ZGUgPHVuaXN0ZC5oPgojaW5jbHVkZSA8c3RkaW8uaD4KCmludCBpc193aGl0ZXNwYWNlKGNoYXIgYykKewovL3ByaW50ZigiJWMiLCBjKTsKaWYoYyA9PSAnXHQnIHx8IGMgPT0gJ1xuJyB8fCBjID09ICdccicgfHwgYyA9PSAnICcpCnJldHVybiAoMSk7CmVsc2UKcmV0dXJuICgwKTsKfQoKaW50IG1haW4oaW50IGFyZ2MsIGludCAqKmFyZ3YpCnsKaW50IGk7CgppID0gMDsKaWYoYXJnYyA9PSAyKQp7ICAKICAgIHdoaWxlKGlzX3doaXRlc3BhY2UoYXJndlsxXVtpXSkgPT0gMSkKICAgICAgICBpKys7CiAgICB3aGlsZShpc193aGl0ZXNwYWNlKGFyZ3ZbMV1baV0pID09IDAgJiYgYXJndlsxXVtpXSAhPSAwKQogICAgewogICAgICAgIHdyaXRlKDEsICYoYXJndlsxXVtpXSksIDEpOwogICAgICAgIC8vcHJpbnRmKCIlYyIsIGFyZ3ZbMV1baV0pOwogICAgICAgIGkrKzsKICAgIH0KfQoKd3JpdGUoMSwgIlxuIiwgMSk7Cn0=