import java.lang.*;
import java.util.*;
class Main
{
{
while(c-->0)
{
a=c*(c+1)*(c+2)%10000/10;
b=c*(c+1)*(c+2)%10000/10;
if(a==b)
else
}
}
}
aW1wb3J0IGphdmEubGFuZy4qOwppbXBvcnQgamF2YS51dGlsLio7CgpjbGFzcyBNYWluCnsKICBwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgdGhyb3dzIGphdmEubGFuZy5FeGNlcHRpb24KICB7CiAgICAgSW50ZWdlciBhLGIsYz0xMDA7CiAgICAgd2hpbGUoYy0tPjApCiAgICAgewogICAgICAgICBhPWMqKGMrMSkqKGMrMiklMTAwMDAvMTA7CiAgICAgICAgIGI9YyooYysxKSooYysyKSUxMDAwMC8xMDsKICAgICAgICAgaWYoYT09YikKICAgICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4oInllcyEiKTsKICAgICAgICAgZWxzZQogICAgICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbigibm8uLi4iKTsKICAgICB9CiAgfQp9