w, h, x, y = map(int, input().split())
str1 = f'{w * h / 2:.09f}'
str2 = '1' if w == x * 2 and h == y * 2 else '0'
print(' '.join([str1,str2])) w, h, x, y = map(int, input().split()) w map(int, input().split()) map int input().split() ().split () input split h x y str1 = f'{w * h / 2:.09f}' str1 f'{w * h / 2:.09f}' str2 = '1' if w == x * 2 and h == y * 2 else '0' str2 '1' if w == x * 2 and h == y * 2 else '0' w == x * 2 and h == y * 2 w == x * 2 w x * 2 x 2 h == y * 2 h y * 2 y 2 '1' '0' print(' '.join([str1,str2])) print ' '.join([str1,str2]) ' '.join ' ' join [str1,str2] str1 str2 str1 = f'{w * h / 2:.09f}' f'{w * h / 2:.09f}' str1 w, h, x, y = map(int, input().split()) map(int, input().split()) w str2 = '1' if w == x * 2 and h == y * 2 else '0' '1' if w == x * 2 and h == y * 2 else '0' str2 x, y = map(int, input().split()) map(int, input().split()) x y = map(int, input().split()) map(int, input().split()) y h, x, y = map(int, input().split()) map(int, input().split()) h
w, h, x, y = map(int, input().split())
str1 = f'{w * h / 2:.09f}'
str2 = '1' if w == x * 2 and h == y * 2 else '0'
print(' '.join([str1,str2]))