#include <stdio.h> #include<ctype.h> #include<string.h> void arr(char a[]) { int i=0; while(a[i]!='\0') { if(islower(a[i])) { a[i]=toupper(a[i]); }i++; } } int aee(const char* str1, const char* str2) { const char* s1 = NULL; const char* s2 = NULL; const char* cut = str1; int i = 0; while (*cut) { s1 = cut; s2 = str2; while ((*s1 == *s2) && *s1 != '\0' && *s2 != '\0') { s1++; s2++; } if (*s2 == '\0' ) { return i; } cut++; i++; } return -1; } int main() { char a[100]={0}; char b[10]="Bob"; scanf("%s",a); arr(a); arr(b); printf("%d",aee(a,b)); return 0; }