Update s4.cpp