#include <cstdio>
int foo(int a, int b, int c = 5)
{
std::printf("%d %d %d\n", a, b, c);
}
int bar()
{
int foo(int a = 1, int b = 1, int c = 1);
foo();
}
int main()
{
foo(1, 2);
int foo(int a, int b, int c = 8);
foo(1, 2);
int foo(int a, int b = 5, int c);
foo(1);
int foo(int a = 3, int b, int c);
foo();
bar();
return 0;
}
I2luY2x1ZGUgPGNzdGRpbz4KCmludCBmb28oaW50IGEsIGludCBiLCBpbnQgYyA9IDUpCnsKICBzdGQ6OnByaW50ZigiJWQgJWQgJWRcbiIsIGEsIGIsIGMpOwp9CgppbnQgYmFyKCkKewogIGludCBmb28oaW50IGEgPSAxLCBpbnQgYiA9IDEsIGludCBjID0gMSk7CiAgZm9vKCk7Cn0KCmludCBtYWluKCkKewogIGZvbygxLCAyKTsKICBpbnQgZm9vKGludCBhLCBpbnQgYiwgaW50IGMgPSA4KTsKICBmb28oMSwgMik7CiAgaW50IGZvbyhpbnQgYSwgaW50IGIgPSA1LCBpbnQgYyk7CiAgZm9vKDEpOwogIGludCBmb28oaW50IGEgPSAzLCBpbnQgYiwgaW50IGMpOwogIGZvbygpOwogIGJhcigpOwogIHJldHVybiAwOwp9