import math


def normalize(vx, vy):
	"""
	Normalizes the input vector and returns its coordinates.
	"""
	norm = math.sqrt(vx * vx + vy * vy)
	if (norm > 1e-6):
		vx /= norm
		vy /= norm
	return (vx, vy)