The input contains two integers *a*<sub class="lower-index">1</sub>, *a*<sub class="lower-index">2</sub> (0 ≤ *a*<sub class="lower-index">*i*</sub> ≤ 32), separated by a single space.
a1, a2 = map(int, input().split())
if a1 == a2:
    print(0)
elif a1 < a2 and a2%a1==0:
    print(1)
elif a1 < a2 and a2%a1!=0:
    print(1)
else:
    print(1)