import sys room_floor=1 room_max=1 n=int(sys.stdin.readline().rstrip()) while n>room_max: room_max=room_max+6*room_floor room_floor=room_floor+1 print(int(room_floor))