From heartfire.cc, failed on large input