    # -*- coding: utf-8 -*-
    import math
     
    ###
    # main
    if(__name__ == '__main__'):
        # input
        r = int(input())
     
        pi = 3.141592
        ans = pi * r * 2.0
        print(ans)
     
    # else:
        # do nothing