a,b = map(int,input().split()) print((a or b) + (a and b))