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