Identifying friendship vs. foes