#include <stdio.h>
int main ()
{
int i,j;
for(i=1; i<=5; i++)
{
for(j=1; j<=i; j++)
{
}
}
for(i=1; i<=4; i++)
{
for(j=1; j>=i; j--)
{
}
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CmludCBtYWluICgpCnsKICAgIGludCBpLGo7CiAgICBmb3IoaT0xOyBpPD01OyBpKyspCiAgICB7CiAgICAgICAgZm9yKGo9MTsgajw9aTsgaisrKQogICAgICAgIHsKICAgICAgICAgICAgcHJpbnRmKCIqIik7CiAgICAgICAgfQogICAgICAgIHByaW50ZigiXG4iKTsKICAgIH0KICAgIGZvcihpPTE7IGk8PTQ7IGkrKykKICAgIHsKICAgICAgICBmb3Ioaj0xOyBqPj1pOyBqLS0pCiAgICAgICAgewogICAgICAgICAgICBwcmludGYoIioiKTsKICAgICAgICB9CiAgICAgICAgcHJpbnRmKCJcbiIpOwogICAgfQogICAgcmV0dXJuIDA7Cn0K