Input: Wood can puts out fire
Water can puts out fire

Output: first