Double Tucker



If the given number is divisible by 2 means that is Even number. If the given number is not divisible by 2 means that is Odd number.



Example-1:


Input    : n = 4
Output   : Even  


Example-2:


Input    : n = 5
Output   : Odd  







Solution




l1 = [ 1, 2, 3, 4, 5]

l2 = [ 5, 4, 3, 2, 1]

a = min(l1)

b = min(l2)

c = l1.index(a)

d = l2.index(b)

if(c!=d):

    print(a+b)

else:

    e = sorted(l2)

    f = e[1]

    g1 = a + f

    e1 = sorted(l1)

    f1 = e1[1]

    g2 = b + f1

    if(g1<g2):

        print(g1)

    else:

        print(g2)



Output



2