Quite brute-force solution for 420 (runs in 3 mins).