#include <iostream>
using namespace std;
void function1(int &, int &);
int function2(int &);
int function3(int , int);
void function4(int, int, int);
int main()
{
int x = 9, y = 7, z = 5;
for(int i = 0; i<= 5; i++)
function1(x, y);;
z = function2 ( y );
if((z>=10 && x<7) || y!= 5)
{
y = function3(x,9);
x = function3(y,9);
}
else
z = function3(z,x);
function4(x, y, z);
}
void function1(int &a, int &b)
{
a++;
b--;
if(a == b)
a = 2*b;
else
b = a%2;
}
int function2( int & a )
{
a+=2;
return 10;
}
int function3(int a, int b)
{
return a*2+b/2;
}
void function4(int a, int b, int c)
{
cout << "The Result is: " << (a+b)/c << endl;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKdm9pZCBmdW5jdGlvbjEoaW50ICYsIGludCAmKTsKaW50IGZ1bmN0aW9uMihpbnQgJik7CmludCBmdW5jdGlvbjMoaW50ICwgaW50KTsKdm9pZCBmdW5jdGlvbjQoaW50LCBpbnQsIGludCk7CgppbnQgbWFpbigpCnsKaW50IHggPSA5LCB5ID0gNywgeiA9IDU7Cgpmb3IoaW50IGkgPSAwOyBpPD0gNTsgaSsrKQpmdW5jdGlvbjEoeCwgeSk7OwoKeiA9IGZ1bmN0aW9uMiAoIHkgKTsKCmlmKCh6Pj0xMCAmJiB4PDcpIHx8IHkhPSA1KQp7CnkgPSBmdW5jdGlvbjMoeCw5KTsKeCA9IGZ1bmN0aW9uMyh5LDkpOwp9CmVsc2UKeiA9IGZ1bmN0aW9uMyh6LHgpOwoKZnVuY3Rpb240KHgsIHksIHopOwoKfQp2b2lkIGZ1bmN0aW9uMShpbnQgJmEsIGludCAmYikKewphKys7CmItLTsKaWYoYSA9PSBiKQphID0gMipiOwplbHNlCmIgPSBhJTI7Cn0KaW50IGZ1bmN0aW9uMiggaW50ICYgYSApCnsKYSs9MjsKcmV0dXJuIDEwOwoKfQoKaW50IGZ1bmN0aW9uMyhpbnQgYSwgaW50IGIpCnsKcmV0dXJuIGEqMitiLzI7Cn0KCnZvaWQgZnVuY3Rpb240KGludCBhLCBpbnQgYiwgaW50IGMpCnsKY291dCA8PCAiVGhlIFJlc3VsdCBpczogIiA8PCAoYStiKS9jIDw8IGVuZGw7Cn0=