problem 10489 GIFs