State tax filing

I lived in Missouri at beggining of 2020. I moved from Missouri to Kansas around August 2020, then I moved back to Missouri at the end of December. What i should input based on this information? 

 

Additionally, i only earned income from Missouri when i live in Kansas.