Can i use Analog In pins as digital or analog?

Yes, just do a digitalRead() on your analog pins. Works exactly the same as the digital pins.