the winner card game popular Berland Berlogging determine accord follow rule if end game player maximum number point winner the situation difficult number player during round player gain lose particular number point in course game number point register line score player score number point gain round integer number if score negative mean player lose round so player maximum number point equal m end game win score m point Initially player 0 point its guarantee end game player positive number point