#include<stdio.h>
#include<string.h>
#include<ctype.h>
int main(){
    char str1[101];
    char str2[101];
    scanf("%s",str1);
    scanf("%s",str2);
    for(int i=0;s[i]!='\0';i++){
        if(!isalpha(s1[i])){
            printf("Invalid input\n");
            return 0;
        }
    }
    for(int i=0;s[i]!='\0';i++){
        if(!isalpha(s2[i])){
            printf("Invalid input\n");
            return 0;
        }
    }
    
}