#include <stdio.h>
#include <ctype.h>
#include <string.h>

int main() {
    char a[20]; 
    char b[10];
    fgets(a, sizeof(a), stdin);
    removeNewline(a);

    printf("Enter second
    fgets(b, sizeof(b), stdin);
    removeNewline(b);

    if (isAlphaString(a) && isAlphaString(b)) {
        strcat(a, b);
        printf("%s\n", a);
    } else {
        printf("Invalid input\n");
    }

    return 0;
}