Problem003 with variable long