Leave switch 1 off all the time. Turn switch 2 on for a couple of minutes, then turn it off. Turn switch 3 on and leave it on. Now, go to the bulb. If the lightbulb is on, switch 3 controls it. Otherwise, if the lightbulb is hot to the touch, switch 2 controls it. Otherwise, switch 1 controls it.