t | def pattern_find(string, pattern): | t | def pattern_find(string, pattern): |
| for start_i in range(len(string) - len(pattern) + 1): | | for start_i in range(len(string) - len(pattern) + 1): |
| b = True | | b = True |
| for i in range(len(pattern)): | | for i in range(len(pattern)): |
| if not (pattern[i] == '@' or pattern[i] == string[start_i + i]): | | if not (pattern[i] == '@' or pattern[i] == string[start_i + i]): |
| b = False | | b = False |
| break | | break |
| if b: | | if b: |
| return start_i | | return start_i |
| return -1 | | return -1 |
| string = input() | | string = input() |
| pattern = input() | | pattern = input() |
| print(pattern_find(string, pattern)) | | print(pattern_find(string, pattern)) |