import strutils var n = stdin.readLine.parseBool echo ord(not n) #echo cast[int](not n)