#include <iostream>
using namespace std;

int main()
{
    int i, j=0;
verytop:
    if (j == 10) goto bottom;
    i = 0;
top:
    i++;
    if (i<10) goto top;
    cout << "I = " << i << endl;
    j++;
    goto verytop;
bottom:
    cout << "Leaving this crazy functions = " << i << endl;
    return 0;

}
