x1,y1,x2,y2,x3=map(int,input().split()) #OAC OBCの面積は等しいか oac=x3*y1 obc=x3*y2 if oac==obc: print('Yes') else: print('No')