Not very difficult problem to solve