Input (grade 4): The empire came to an end with the attack of the Huns from central Asia.
Output (grade 2): With this the Gupta dynasty came to an end.