import sys N = int(sys.stdin.readline()) if "PyPy" in sys.version: print(N**0.5*4) else: raise RuntimeError("WTF")