ATTINY85 5V output help?

I need to make a trigger adapter for my camera, so where the avr chip sees 0v on a input 1 and 5v on a input 2 it outputs 5v on output 1 and 5v on output 2.
What i want to know is will it work if i use the Analog Input pin 3 and 4 to detect the 0v and 5v and the Pin 1 and Pin 0 to output the 5v?

It needs to convert these high and low values to different values:
01=11(Picture trigger)
10=10(Focus trigger)

Hello deltawars

Those input pins can also be used as digital pins 3 and 4. That would make your code simpler.

Regards

Ray