Start in the same state after turning the power off and on

Hi @Jan123456
All LEDs are with pinMode(x, INPUT);
Is it correct or should it be OUTPUT?

RV mineirin