Spirograph calculator

1: Simple system

Input

Output

2: Wheel (Wheel 2) in cutout (Ring 2) of the Wheel 1

Input

Output