int check_permissions(char *curr_per, char *req_per) {
    for (int i = 0; i < 9; i++) {
        if (req_per[i] != '-' && req_per[i] != curr_per[i]) {
            return 1;
        }
    }
    return 0;
}


int main(int argc, char** argv) {
    if (!(argc == 2 || argc == 3)) {
        fprintf(stderr, "USAGE: count_large size [permissions]\n");
        return 1;
    }
    int count = 0;
    
    // TODO: Process command line arguments.
    scanf("%*s %*d");
    char permissions[11];
    int size;

    while (scanf("%10s %*s %*s %d %*s %*d %*s %*s", permissions, &size) != EOF) {
        printf("%s, %d\n", permissions, size);
    }
    
/*     while (scanf("%s %*s %*s %d %*s %*d %*s %*s", permissions, &size) != EOF) {
        if (argc == 3) {
            if (check_permissions(permissions + 1, argv[2]) == 0 && size > *argv[1]) {
                count ++;
            }
        }
        else {
            if (size > *argv[1]) {
                count ++;
            }
        }
    } */
    printf("%d\n", count);
    
    // TODO: Call check_permissions as part of your solution to count the files to
    // compute and print the correct value.

    return 0;
}
take input in format of ls -l command and print the permissions and size of each file