Result

WA

Code [DL]

$ 'incn'
 \             /-(!c!)(n)1s{incn}(c)#
  \-(!n!)(n)0q<
               \-1a#

$ 'pzs'
 \             /-(n)1s{pzs}0#
  \-(!n!)(n)0q<
               \-#

$ 'main'
 \
  \-4{pzs}0{incn}1{incn}2{incn}1{incn}1{incn}2{incn}oooo#

stdin

1960213988128464315680033987129556497269987524009224450330215346854605980887214674044568126879897702

stdout

1320

stderr

strace