Problem 299 solved