def maths(a):
i=1;
j=0;
while 1:
if(i%2==0 or i%3==0):
j=j+1;
if(a==j):
break
i=i+1;
return i;
s=maths(2);
print(s);
def maths(a):
i=1;
j=0;
while 1:
if(i%2==0 or i%3==0):
j=j+1;
if(a==j):
break
i=i+1;
return i;
s=maths(2);
print(s);