Input (grade 13): At the end of World War II, parts of its territories (roughly the present day Moldova) were occupied by the USSR and Romania became a member of the Warsaw Pact.
Output (grade 7): At the end of World War II, some of its land (close by what is now known as Moldova) was occupied by the USSR.