I love the creativity here! It gets a little complex with all of the patterns and types of inputs, but given the jam restrictions, this is a fantastic entry!