#include <stdio.h> 
#include <string.h> 
#include <ctype.h> 

#define MAX_LINE_LEN 128 
#define WS " \",:;(){}[]<>/\\=+\t.?!" 

int main(int argc, char *argv[]) { 
    char line[MAX_LINE_LEN], *w; 

    puts("Enter phrases to abbreviate:"); 
    while (1) { 
        printf("\n> "); 
        fgets(line, MAX_LINE_LEN, stdin); 
        for (w = strtok(line,WS); w != NULL; w = strtok(NULL,WS)) { 
            if (isupper(w[0])) { 
                putchar(w[0]); 
            } 
        } 
    } 
    return 0; 
}