# list1 = (1, 2, 3)
# list2 = (2,3)
#
# strlist1 = '-'.join(map(str, list1))
# print "strlist1",strlist1
# strlist2 = '-'.join(map(str, list2))
# print "strlist2",strlist2
#
# print(strlist1.find(strlist2))

# list1 = (1, 2, 3,4,5,6)
# list2 = (5, 6)

list1 = (1, 2,2, 3,4,5,5,6,5)
list2 = (5, 6)

strlist1 = '-'.join(map(str, list1))
print "strlist1",strlist1
strlist2 = '-'.join(map(str, list2))
print "strlist2",strlist2

strindex =strlist1.find(strlist2)

if strindex != -1:
    countofdashes = strlist1[:strindex].count('-')
    print (strindex - countofdashes)
else:
    print(strindex)