import java.lang.*;
import java.util.*;
class Main
{
{
int a,b,c=100; //int замість Integer
while(c-->0)
{
a=c*(c+1)*(c+2)%10000/10;
b=c*(c+1)*(c+2)%10000/10;
if(a==b)
else
}
}
}
aW1wb3J0IGphdmEubGFuZy4qOwppbXBvcnQgamF2YS51dGlsLio7CiAKY2xhc3MgTWFpbgp7CiAgcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCiAgewogICAgIGludCBhLGIsYz0xMDA7IC8vaW50INC30LDQvNGW0YHRgtGMIEludGVnZXIKICAgICB3aGlsZShjLS0+MCkKICAgICB7CiAgICAgICAgIGE9YyooYysxKSooYysyKSUxMDAwMC8xMDsKICAgICAgICAgYj1jKihjKzEpKihjKzIpJTEwMDAwLzEwOwogICAgICAgICBpZihhPT1iKQogICAgICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbigieWVzISIpOwogICAgICAgICBlbHNlCiAgICAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKCJuby4uLiIpOwogICAgIH0KICB9Cn0=