Read a freqency from an analog pin

I am very new at programming. I want to understand what is wrong, but i can't. =(
That's the only mistake? As I turned off the LED-s? The circuit does not light at all, I put any frequency. Should not light up LEDs? =(

ps: sorry for bad english.