Create PAT 1018.cpp