------
## 最终结论
```python
def bulbSwitch(n: int) -> int:
    return int(n**0.5)

# Example usage:
print(bulbSwitch(3))  # Output: 1
```