#include <stdio.h>

int main(void) {
	char * inputdata = "4273 Багров Д. С. 5454 знззз";
    // variables to receive the scanned data
	int firstint, secondint;
	char firststring[32];
	char secondstring[32];
	char thirdstring[32];
	char fourthstring[32];
	// important, you should check whether the number of converted elements 
	// matches what you expect:
	int scannedelements;
	// let's scan the input
	scannedelements = sscanf (inputdata,"%d %s %s %s %d %s",&firstint, firststring, secondstring, 
				thirdstring,&secondint,fourthstring);
	// and show what we found.  Notice the similarity between scanf and printf
	// but also note the subtle differences!!!
	printf("We scanned %d %s %s %s %d %s\n",firstint, firststring, secondstring, 
				thirdstring,secondint,fourthstring);
	printf("That's a total of %d elements\n",scannedelements);
	// Alternatively, let's scan the group of 3 strings into 1 variable
	scannedelements = sscanf (inputdata,"%d %[^0-9] %d %s",&firstint, firststring, &secondint,fourthstring);
	// and show what we found.
	printf("We scanned %d %s %d %s\n",firstint, firststring,secondint,fourthstring);
	printf("That's a total of %d elements\n",scannedelements);
	return 0;
}
