>>536046415
The flowchart makes it look complicated but it's really not that bad.