I want to know what's wrong with my coding

In my code output 1 goes to HIGH immediately after input goes to HIGH.