import statistics N = int(input()) lst = range(N,N*6+1) print(statistics.median(lst))