Ryan throws 3 touchdown passes