Buggy python submission (verdict: Runtime Error):



while 1:
	list1=input().split('"')
	if len(list1)==1 and list1[0]=='.':
		break
	list2=input().split('"')
	
	cnt=0
	flag1=1
	flag2=0
	
	if len(list1)!=len(list2):
		flag1=0
	else:
		i=0
		while i<len(list1):
			if list1[i]==list2[i]:
			elif i%2==0:
				flag1=0
				flag2=1
				break
			else:
				cnt+=1
				
				if cnt>1:
					flag1=0
					break
			i+=1
	if flag1==0 and cnt==1 and flag2=0:
		print("CLOSE")
	elif flag==1:
		print("IDENTICAL")
	else:
		print("DEFFERENT")
				


Fixed submission:
while True:
    list1=input().split('"')
    if list1[0]==".":
        break
    list2=input().split('"')
     
    cnt1=0
    cnt2=0
    flag=0
     
    if len(list1)!=len(list2):
        print("DIFFERENT")
    else:
        i=0
        while i<len(list1):
            if list1[i]==list2[i]:
                cnt1+=1
            elif i%2==0:	#[ " ~~~~~ " ]in ""
                print("DIFFERENT")
                flag=1
                break
            else:
                cnt2+=1
                if cnt2>1:
                    print("DIFFERENT")
                    break
            i+=1
                 
        if flag==0 and cnt2==1:
            print("CLOSE")
        if cnt1==len(list1):
            print("IDENTICAL")

Buggy python submission (verdict: Runtime Error):
while 1:
    list1=input().split('"')
    if len(list1)==1 and list1[0]==".":
        break
    list2=input().split('"')
     
    c1=0
    c2=0
    flag=0
     
    if len(list1)!=len(list2):
        print("DIFFERENT")
    else:
        i=0
        while i<len(list1):
            if list1[i]==list2[i]:
                c1+=1
            elif i%2==0:
                print("DIFFERENT")
                flag=1
                break
            else:
                c2+=1
                if c2>1:
                    print("DIFFERENT")
                    break
            i+=1
                 
        if flag==0 and t2==1:
            print("CLOSE")
        if c1==len(list1):
            print("IDENTICAL")


Fixed submission:
while True:
    list1=input().split('"')
    if list1[0]==".":
        break
    list2=input().split('"')
     
    cnt1=0
    cnt2=0
    flag=0
     
    if len(list1)!=len(list2):
        print("DIFFERENT")
    else:
        i=0
        while i<len(list1):
            if list1[i]==list2[i]:
                cnt1+=1
            elif i%2==0:	#[ " ~~~~~ " ]in ""
                print("DIFFERENT")
                flag=1
                break
            else:
                cnt2+=1
                if cnt2>1:
                    print("DIFFERENT")
                    break
            i+=1
                 
        if flag==0 and cnt2==1:
            print("CLOSE")
        if cnt1==len(list1):
            print("IDENTICAL")

Buggy python submission (verdict: Runtime Error):
while 1:
    list1=input().split('"')
    if list1[0]==".":
        break
    list2=input().split('"')
     
    c1=0
    c2=0
    flag=0
     
    if len(list1)!=len(list2):
        print("DIFFERENT")
    else:
        i=0
        while i<len(list1):
            if list1[i]==list2[i]:
                c1+=1
            elif i%2==0:
                print("DIFFERENT")
                flag=1
                break
            else:
                c2+=1
                if c2>1:
                    print("DIFFERENT")
                    break
            i+=1
                 
        if flag==0 and t2==1:
            print("CLOSE")
        if c1==len(list1):
            print("IDENTICAL")


Fixed submission:
while True:
    list1=input().split('"')
    if list1[0]==".":
        break
    list2=input().split('"')
     
    cnt1=0
    cnt2=0
    flag=0
     
    if len(list1)!=len(list2):
        print("DIFFERENT")
    else:
        i=0
        while i<len(list1):
            if list1[i]==list2[i]:
                cnt1+=1
            elif i%2==0:	#[ " ~~~~~ " ]in ""
                print("DIFFERENT")
                flag=1
                break
            else:
                cnt2+=1
                if cnt2>1:
                    print("DIFFERENT")
                    break
            i+=1
                 
        if flag==0 and cnt2==1:
            print("CLOSE")
        if cnt1==len(list1):
            print("IDENTICAL")