/*Write your code here*/
module maxmin4 (
input [3:0] a,b,c,d,
output [3:0] max,min
);
wire [3:0] x,y,z,w;
assign x = (a>b) ? a : b;
assign y = (a<b) ? a : b;
assign z = (c>d) ? c : d;
assign w = (c<d) ? c : d;
assign max = (x>z) ? x : z;
assign min = (y<w) ? y : w;
endmodule