For this Question: You are given two non-negative integers, A and B. You are required to print the smallest non-negative integer such that it is not equal to both A and B.The input consists of two space separated integers A and B.

Constraints:
0 &le; A &le; 10
0 &le; B &le; 10
A &ne; B
Print a single integer denoting the answer.Sample Input 1:
0 1

Sample Output 1:
2

Sample Input 2:
4 5

Sample Output 2:
0, I have written this Solution Code: p=input()
q=list(p.split(" "))
for i in range(0,int(q[1])+2):
    if(int(q[0])!=i and int(q[1])!=i):
        print(i)
        break, In this Programming Language: Python, Now tell me if this Code is compilable or not?