How do you plan to solve it?
used the logical not (!) operator.
module top_module(input a, output y); assign y = !a; endmodule