Buggy python submission (verdict: Runtime Error):
s = list(str(input()))
t = list(str(input()))



def judge(S,T):
    start = [-1 for i in range(26) ] 
    goal = [-1 for i in range(26)]
    for i in range(len(S)):
        a = ord(S[i]) - ord('a')
        b = ord(T[i]) - ord('a')
        if start[a] != -1 or goal[b] != -1:
            if start[a]!= b or goal[b] !=a:
                print("No")
                break
        else:
            start[a] = b
            goal[b] =a
        if i==len(S)-1:
            print("Yes")
            
            
 judge(s,t)           

Fixed submission:
s = list(str(input()))
t = list(str(input()))

def judge(S,T):
    start = [-1 for i in range(26) ] 
    goal = [-1 for i in range(26)]
    for i in range(len(S)):
        a = ord(S[i]) - ord('a')
        b = ord(T[i]) - ord('a')
        if start[a] != -1 or goal[b] != -1:
            if start[a]!= b or goal[b] !=a:
                print("No")
                break
        else:
            start[a] = b
            goal[b] =a
        if i==len(S)-1:
            print("Yes")
            
judge(s,t)

Buggy python submission (verdict: Time Limit Exceeded):
s = list(str(input()))
t = list(str(input()))

def judge(S,T):
    count = 0
    while True:
        if count == len(S):
            break
        if S[count] == T[count]:
            count = count + 1
        else:
            c1 = S[count]
            c2 = T[count]
            for i in range(len(S)):
                if S[i] == c1:
                    S[i] = c2
                elif S[i] == c2:
                    S[i] = c1
            count = count + 1
    if S == T:
        print("Yes")
    else:
        print("No")
    #print(S)
    #print(T)
    
judge(s,t)

Fixed submission:
s = list(str(input()))
t = list(str(input()))

def judge(S,T):
    start = [-1 for i in range(26) ] 
    goal = [-1 for i in range(26)]
    for i in range(len(S)):
        a = ord(S[i]) - ord('a')
        b = ord(T[i]) - ord('a')
        if start[a] != -1 or goal[b] != -1:
            if start[a]!= b or goal[b] !=a:
                print("No")
                break
        else:
            start[a] = b
            goal[b] =a
        if i==len(S)-1:
            print("Yes")
            
judge(s,t)

Buggy python submission (verdict: Runtime Error):
S = list(str(input()))
T = list(str(input()))

count = 0
while True:
    if S[count] == T[count]:
        count = count + 1
    else:
        c1 = S[count]
        c2 = T[count]
        for i in range(len(S)):
            if S[i] == c1:
                S[i] = c2
            elif S[i] == c2:
                S[i] = c1
    count = count + 1
    if count == len(S)-1:
        break

if S == T:
    print("Yes")
else:
    print("No")
        

Fixed submission:
s = list(str(input()))
t = list(str(input()))

def judge(S,T):
    start = [-1 for i in range(26) ] 
    goal = [-1 for i in range(26)]
    for i in range(len(S)):
        a = ord(S[i]) - ord('a')
        b = ord(T[i]) - ord('a')
        if start[a] != -1 or goal[b] != -1:
            if start[a]!= b or goal[b] !=a:
                print("No")
                break
        else:
            start[a] = b
            goal[b] =a
        if i==len(S)-1:
            print("Yes")
            
judge(s,t)

Buggy python submission (verdict: Runtime Error):
S = list(str(input()))
T = list(str(input()))

count = 0
while True:
    if S[count] == T[count]:
        count = count + 1
        #print(count)
    else:
        c1 = S[count]
        c2 = T[count]
        for i in range(len(S)):
            if S[i] == c1:
                S[i] = c2
            elif S[i] == c2:
                S[i] = c1
    if count == len(S)-1:
        break

if S == T:
    print("Yes")
else:
    print("No")

Fixed submission:
s = list(str(input()))
t = list(str(input()))

def judge(S,T):
    start = [-1 for i in range(26) ] 
    goal = [-1 for i in range(26)]
    for i in range(len(S)):
        a = ord(S[i]) - ord('a')
        b = ord(T[i]) - ord('a')
        if start[a] != -1 or goal[b] != -1:
            if start[a]!= b or goal[b] !=a:
                print("No")
                break
        else:
            start[a] = b
            goal[b] =a
        if i==len(S)-1:
            print("Yes")
            
judge(s,t)