UVA 3 & a bit Euler