Solutions for UVA stuff