import sys N = int(sys.stdin.readline()) print(N**0.5*4)