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

int main(){
	char directory;
	char permissions[9];
	char idk[31];
	char username[31];
	char group_name[31];
	char s_size[31];
	char month[3];
	char date[2];
	char time[5];
	char filename[31];

	scanf("%c %s %s %s %s %s %s %s %s %s", &directory, permissions, idk, username, group_name, s_size, month, date, time, filename);

	int size = strtol(s_size, NULL, 10);
	
	printf("%c %s %s %s %s %d %s %s %s %s \n", directory, permissions, idk, username, group_name, size, month, date, time, filename);

	return 0;
}
Code is supposed to take 9 strings. 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. Then s_size will be converted into an integer. Then all the variables except s_size are printed