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.

import sys
input = sys.stdin.readline

a, b = map(int, input().split())
x = a+b
if x < 11 or 34 > x > 23 or 48 > x > 46 or x > 52:
    print(0)
else:
    print(1)
