Code for 600x problems