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

int main(){
	char directory;
	char permissions[9];
	char idk[31];
	char username[31];
	char groupname[31];
	int size;

	size = 0;

	scanf("%c %8s %30s %30s %30s %d", directory, permissions, idk, username, groupname, &size);
	
	printf("%c %8s %d \n", directory, permissions, size);

	return 0;
}
Code is supposed to take 4 strings and an int. The first string will be split into two with directory taking the first character of the string and then permissions taking the other 9 characters. The printf will print directory, permissions and size to make sure the first string was split properly and the integer was also taken correctly.