import math def calculate_result(N): result = int(math.sqrt(1 + N * (N + 1))) if N != 0: result += 1 return result N = int(input()) result = calculate_result(N) print(result)