#coding=UTF-8 #1-liner狙おうとしたけど誤差(たぶん絶対誤差)が厳しいので真面目に場合分けしようかと N=int(input()) if N%2==0: print(N*7//2) else: print('{0}.5'.format(N*7//2))