522 got ac, such surprise, not sure about algorithm