uva12347 ac