def calculate_va():
# Get V1 from the user
V1 = float(input("Enter the value of V1 (in Volts): "))
# Given circuit values
R1 = 5000 # 5kΩ
R2 = 2000 # 2kΩ
I1 = 0.001 # 1mA
# Calculate Va
Va = ((V1 / R1) + I1) / ((1 / R1) + (1 / R2))
print(f"Va (Voltage at node A) = {Va:.2f} V")
# Run the function
calculate_va()