#include <iostream>

using namespace std;

int x = 5;

int main() {
	cout << x << endl;
	{
		cout << x << endl;
		int x = 7;
		cout << x << endl;
		{
			cout << x << endl;
			int x = 12;
			cout << x << endl;
		}		
		cout << x << endl;
		
	}
	cout << x << endl;
}