DrawCode Practice Problem

Pivot Monthly Sales

Given sales rows `(product, month, revenue)`, pivot so each product has columns for each month with revenue values (fill missing with 0).

Examples

Input

rows for Jan/Feb/Mar per product

Output

wide table product x month columns

Constraints


Interactive Visualizer Workspace

Explore step-by-step interactive animations, memory state tracking, and live multi-language execution in DrawCode.

Launch Interactive Visualizer