#include <stdio.h>



    int any(char s1[], char s2[]){
    int i, j;
    i = j = 0;
    while (s1[i] != '\0'){
    while (s2[j] != '\0'){
    if (s1[i] == s2[j++])
    return i;
    }
    i++;
    }
    return -1;
    }



int main(void) {
	printf("%d", any("cba", "ac"));
	return 0;
}
