Create p6tac.cpp

copy paste into gh online