Police shot and wounded a gunman in West Philadelphia this morning and then followed a blood trail to a second man riddled with bullets nearby, authorities said.

Both men were reported in critical condition at the Hospital of the University of Pennsylvania.

Authorities gave the following account:

Police were called to the 100 block of North Dearborn Street about 2:45 a.m. for a report of gunfire.

The first arriving officer saw a man at 51st and Race Streets, waving a gun and shouting.

The officer told the man to drop the weapon and fired five times when the man refused and fled.

A second officer confronted the gunman on Dearborn Street and fired twice when the man turned and pointed the weapon at him.

The gunman was hit in the chest and collapsed. Police recovered a .380-caliber handgun.

A short time later, police followed a blood trail from a house on the the 100 block of Dearborn to 110 North 51st Street, where they found the second man with multiple gunshot wounds on the porch,

The officers who fired their weapons have been placed on restricted duty while the shooting is investigated by Internal Affairs, which is standard procedure.