Two-bed catalytic system for NOx/SOx removal