| n | def find_substring(input_string, template): | n | def find(source, pattern): | 
            |  | for i in range(len(input_string) - len(template) + 1): |  | for i in range(len(source) - len(pattern) + 1): | 
            |  | found = True |  | suitable = True | 
            |  | for j in range(len(template)): |  | for j in range(len(pattern)): | 
            |  | if template[j] != '@' and template[j] != input_string[i + j]: |  | if pattern[j] != '@' and pattern[j] != source[i + j]: | 
            |  | found = False |  | suitable = False | 
            |  | break |  | break | 
            | n | if found: | n | if suitable: | 
            |  | return i |  | return i | 
            |  | return -1 |  | return -1 | 
            | t | print(find_substring(input(), input())) | t | print(find(input(), input())) |