A,B,C,D = map(int, input().split(' '))
E = (B+31)-A
print(f'E:{E}')
ans = 1 if E >= C else 2 if E >= D else 3
print(ans)