Updated 14.cpp