x1,y1,x2,y2,x3 = map(int,input().split()) oac = max(x1,x3) * y1 / 2 obc = max(x1,x3) * y2 / 2 print('Yes') if oac == obc else print('No')