Trying problem 323