begin int Value, Result; read Value; Result := 1; begin int Count; Count := 1; while Count