#!/usr/local/bin/python2 p = 10 print 1 if p > 0 else -1 if p < 0 else 0