bx, by = map(int, input().split()) dx, dy = map(int, input().split()) jx, jy = map(int, input().split()) LB = ((jx-bx)**2+(jy-by)**2)**0.5 LD = abs(jx-dx) + abs(jy-dy) print('bessie' if LB<LD else 'daisy' if LB>LD else 'tie')