import sys def isAlly(ally): if ally == 'narmle': return 1 return 0 def isEnemy(enemy): if enemy == 'garyn' or enemy == 'cobral': return 1 return 0