I want example for some functions $f,g:X\to X$, where $X$ is an arbitrary set, such that $g(f(x))=Id_{X}(x)$ and $f$ and $g$ either not bijective (this means $f$ is bijective, $g$ is not bijective is OK. $f$ and $g$ both are bijective is No. $f$ and $g$ neither are bijective is OK.)
I think these two functions exist. but I can't find examples $f, \, g$ please find example
I am Korean so I can't use English well. sorry.