1's complement => 2's complement - 1

n's complement definition
pow(n, b) - N
b = number of digital
N = input