# this example does input validation, ensuring x is nonnegative: x = readInt() if x < 0: x = 0 - x else: pass # prove here that x >= 0