When the door was left open, 36 pigeons flew the coop. If this was 40 percent of all the pigeons, how many pigeons were there originally?​