#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "tree_node.h"



struct tree_node *bst_insert(struct tree_node *root, int value) {
    // TODO: implement this function
    (void) value;
    return root;
}

int tree_height(struct tree_node *root) {
    // TODO: implement this function
    (void) root;
    return 0;
}


int main(void) {
    int n;
    if (scanf("%d", &n) != 1) { n = 0; }
    struct tree_node *root = NULL;
    for (int i = 0; i < n; i++) { int v; scanf("%d", &v); root = bst_insert(root, v); }
    printf("%d\n", tree_height(root));
    return 0;
}
