INCREASE Y INCREASE Y INCREASE Y INCREASE Y INCREASE Y INCREASE X INCREASE X INCREASE X INCREASE X INCREASE X INCREASE X INCREASE X INCREASE X REPEAT Y TIMES ( REPEAT Y TIMES ( REPEAT Y TIMES ( INCREASE W ) ) ) REPEAT Y TIMES ( REPEAT Y TIMES ( INCREASE W ) ) REPEAT Y TIMES ( REPEAT Y TIMES ( INCREASE W ) ) REPEAT Y TIMES ( INCREASE W ) PRINT X # A B C D E F G H I J K L M N O P Q # Z # R S T U V W X Y Z REPEAT X TIMES ( INCREASE T REPEAT U TIMES ( CLEAR U CLEAR T INCREASE S ) REPEAT T TIMES ( INCREASE U ) ) REPEAT U TIMES ( INCREASE A ) CLEAR U CLEAR T CLEAR X REPEAT S TIMES ( INCREASE T REPEAT U TIMES ( CLEAR U CLEAR T INCREASE X ) REPEAT T TIMES ( INCREASE U ) ) REPEAT U TIMES ( INCREASE B ) CLEAR U CLEAR T CLEAR S REPEAT X TIMES ( INCREASE T REPEAT U TIMES ( CLEAR U CLEAR T INCREASE S ) REPEAT T TIMES ( INCREASE U ) ) REPEAT U TIMES ( INCREASE C ) CLEAR U CLEAR T CLEAR X REPEAT S TIMES ( INCREASE T REPEAT U TIMES ( CLEAR U CLEAR T INCREASE X ) REPEAT T TIMES ( INCREASE U ) ) REPEAT U TIMES ( INCREASE D ) CLEAR U CLEAR T CLEAR S REPEAT X TIMES ( INCREASE T REPEAT U TIMES ( CLEAR U CLEAR T INCREASE S ) REPEAT T TIMES ( INCREASE U ) ) REPEAT U TIMES ( INCREASE E ) CLEAR U CLEAR T CLEAR X REPEAT S TIMES ( INCREASE T REPEAT U TIMES ( CLEAR U CLEAR T INCREASE X ) REPEAT T TIMES ( INCREASE U ) ) REPEAT U TIMES ( INCREASE F ) CLEAR U CLEAR T CLEAR S REPEAT X TIMES ( INCREASE T REPEAT U TIMES ( CLEAR U CLEAR T INCREASE S ) REPEAT T TIMES ( INCREASE U ) ) REPEAT U TIMES ( INCREASE G ) CLEAR U CLEAR T CLEAR X REPEAT S TIMES ( INCREASE T REPEAT U TIMES ( CLEAR U CLEAR T ) REPEAT T TIMES ( INCREASE U ) ) REPEAT U TIMES ( INCREASE H ) CLEAR U CLEAR T CLEAR S REPEAT X TIMES ( INCREASE T REPEAT U TIMES ( CLEAR U CLEAR T INCREASE S ) REPEAT T TIMES ( INCREASE U ) ) REPEAT U TIMES ( INCREASE I ) CLEAR U CLEAR T REPEAT S TIMES ( INCREASE T REPEAT U TIMES ( CLEAR U CLEAR T ) REPEAT T TIMES ( INCREASE U ) ) REPEAT U TIMES ( INCREASE J ) CLEAR U CLEAR T CLEAR S REPEAT X TIMES ( INCREASE T REPEAT U TIMES ( CLEAR U CLEAR T INCREASE S ) REPEAT T TIMES ( INCREASE U ) ) REPEAT U TIMES ( INCREASE K ) CLEAR U CLEAR T REPEAT S TIMES ( INCREASE T REPEAT U TIMES ( CLEAR U CLEAR T ) REPEAT T TIMES ( INCREASE U ) ) REPEAT U TIMES ( INCREASE L ) CLEAR U CLEAR T CLEAR S REPEAT X TIMES ( INCREASE T REPEAT U TIMES ( CLEAR U CLEAR T INCREASE S ) REPEAT T TIMES ( INCREASE U ) ) REPEAT U TIMES ( INCREASE M ) CLEAR U CLEAR T REPEAT S TIMES ( INCREASE T REPEAT U TIMES ( CLEAR U CLEAR T ) REPEAT T TIMES ( INCREASE U ) ) REPEAT U TIMES ( INCREASE N ) CLEAR U CLEAR T CLEAR S REPEAT X TIMES ( INCREASE T REPEAT U TIMES ( CLEAR U CLEAR T INCREASE S ) REPEAT T TIMES ( INCREASE U ) ) REPEAT U TIMES ( INCREASE O ) CLEAR U CLEAR T REPEAT S TIMES ( INCREASE T REPEAT U TIMES ( CLEAR U CLEAR T ) REPEAT T TIMES ( INCREASE U ) ) REPEAT U TIMES ( INCREASE P ) CLEAR U CLEAR T CLEAR S REPEAT X TIMES ( INCREASE T REPEAT U TIMES ( CLEAR U CLEAR T INCREASE S ) REPEAT T TIMES ( INCREASE U ) ) REPEAT U TIMES ( INCREASE Q ) CLEAR U CLEAR T CLEAR S #PRINT Q PRINT P PRINT O PRINT N PRINT M PRINT L PRINT K #PRINT J PRINT I PRINT H PRINT G PRINT F PRINT E #PRINT D PRINT C PRINT B PRINT A REPEAT W TIMES ( CLEAR V INCREASE V REPEAT B TIMES ( CLEAR V ) REPEAT C TIMES ( CLEAR V ) REPEAT D TIMES ( CLEAR V ) REPEAT E TIMES ( CLEAR V ) REPEAT F TIMES ( CLEAR V ) REPEAT G TIMES ( CLEAR V ) REPEAT H TIMES ( CLEAR V ) REPEAT I TIMES ( CLEAR V ) REPEAT J TIMES ( CLEAR V ) REPEAT K TIMES ( CLEAR V ) REPEAT L TIMES ( CLEAR V ) REPEAT M TIMES ( CLEAR V ) REPEAT N TIMES ( CLEAR V ) REPEAT O TIMES ( CLEAR V ) REPEAT P TIMES ( CLEAR V ) REPEAT Q TIMES ( CLEAR V ) CLEAR Y INCREASE Y REPEAT V TIMES ( CLEAR Y ) #PRINT Q PRINT P PRINT O PRINT N PRINT M PRINT L PRINT K #PRINT J PRINT I PRINT H PRINT G PRINT F PRINT E #PRINT D PRINT C PRINT B PRINT A REPEAT Y TIMES ( #PRINT D PRINT C PRINT B CLEAR R INCREASE R REPEAT A TIMES ( CLEAR R ) # (3x+1)/2 REPEAT A TIMES ( # 2x CLEAR Q REPEAT P TIMES ( INCREASE Q ) CLEAR P REPEAT O TIMES ( INCREASE P ) CLEAR O REPEAT N TIMES ( INCREASE O ) CLEAR N REPEAT M TIMES ( INCREASE N ) CLEAR M REPEAT L TIMES ( INCREASE M ) CLEAR L REPEAT K TIMES ( INCREASE L ) CLEAR K REPEAT J TIMES ( INCREASE K ) CLEAR J REPEAT I TIMES ( INCREASE J ) CLEAR I REPEAT H TIMES ( INCREASE I ) CLEAR H REPEAT G TIMES ( INCREASE H ) CLEAR G REPEAT F TIMES ( INCREASE G ) CLEAR F REPEAT E TIMES ( INCREASE F ) CLEAR E REPEAT D TIMES ( INCREASE E ) CLEAR D REPEAT C TIMES ( INCREASE D ) CLEAR C REPEAT B TIMES ( INCREASE C ) CLEAR B REPEAT A TIMES ( INCREASE B ) CLEAR A #PRINT Q PRINT P PRINT O PRINT N PRINT M PRINT L PRINT K #PRINT J PRINT I PRINT H PRINT G PRINT F PRINT E #PRINT D PRINT C PRINT B PRINT A # +x INCREASE A CLEAR T REPEAT C TIMES ( INCREASE T CLEAR B ) CLEAR T CLEAR U CLEAR R INCREASE U REPEAT T TIMES ( CLEAR U ) CLEAR R REPEAT D TIMES ( INCREASE R ) CLEAR X REPEAT C TIMES ( INCREASE X ) REPEAT D TIMES ( REPEAT C TIMES ( REPEAT U TIMES ( INCREASE T CLEAR C ) ) REPEAT X TIMES ( REPEAT U TIMES ( INCREASE C ) ) ) REPEAT R TIMES ( REPEAT C TIMES ( REPEAT T TIMES ( CLEAR C ) ) REPEAT X TIMES ( REPEAT T TIMES ( INCREASE C CLEAR T ) ) ) CLEAR T CLEAR U CLEAR R INCREASE U REPEAT T TIMES ( CLEAR U ) CLEAR X REPEAT E TIMES ( INCREASE X ) REPEAT E TIMES ( REPEAT D TIMES ( REPEAT U TIMES ( INCREASE T CLEAR D ) ) REPEAT R TIMES ( REPEAT U TIMES ( INCREASE D ) ) ) REPEAT X TIMES ( REPEAT D TIMES ( REPEAT T TIMES ( CLEAR D ) ) REPEAT R TIMES ( REPEAT T TIMES ( INCREASE D CLEAR T ) ) ) CLEAR T CLEAR U CLEAR R INCREASE U REPEAT T TIMES ( CLEAR U ) CLEAR R REPEAT F TIMES ( INCREASE R ) REPEAT F TIMES ( REPEAT E TIMES ( REPEAT U TIMES ( INCREASE T CLEAR E ) ) REPEAT X TIMES ( REPEAT U TIMES ( INCREASE E ) ) ) REPEAT R TIMES ( REPEAT E TIMES ( REPEAT T TIMES ( CLEAR E ) ) REPEAT X TIMES ( REPEAT T TIMES ( INCREASE E CLEAR T ) ) ) CLEAR T CLEAR U CLEAR R INCREASE U REPEAT T TIMES ( CLEAR U ) CLEAR X REPEAT G TIMES ( INCREASE X ) REPEAT G TIMES ( REPEAT F TIMES ( REPEAT U TIMES ( INCREASE T CLEAR F ) ) REPEAT R TIMES ( REPEAT U TIMES ( INCREASE F ) ) ) REPEAT X TIMES ( REPEAT F TIMES ( REPEAT T TIMES ( CLEAR F ) ) REPEAT R TIMES ( REPEAT T TIMES ( INCREASE F CLEAR T ) ) ) CLEAR T CLEAR U CLEAR R INCREASE U REPEAT T TIMES ( CLEAR U ) CLEAR R REPEAT H TIMES ( INCREASE R ) REPEAT H TIMES ( REPEAT G TIMES ( REPEAT U TIMES ( INCREASE T CLEAR G ) ) REPEAT X TIMES ( REPEAT U TIMES ( INCREASE G ) ) ) REPEAT R TIMES ( REPEAT G TIMES ( REPEAT T TIMES ( CLEAR G ) ) REPEAT X TIMES ( REPEAT T TIMES ( INCREASE G CLEAR T ) ) ) CLEAR T CLEAR U CLEAR R INCREASE U REPEAT T TIMES ( CLEAR U ) CLEAR X REPEAT I TIMES ( INCREASE X ) REPEAT I TIMES ( REPEAT H TIMES ( REPEAT U TIMES ( INCREASE T CLEAR H ) ) REPEAT R TIMES ( REPEAT U TIMES ( INCREASE H ) ) ) REPEAT X TIMES ( REPEAT H TIMES ( REPEAT T TIMES ( CLEAR H ) ) REPEAT R TIMES ( REPEAT T TIMES ( INCREASE H CLEAR T ) ) ) CLEAR T CLEAR U CLEAR R INCREASE U REPEAT T TIMES ( CLEAR U ) CLEAR R REPEAT J TIMES ( INCREASE R ) REPEAT J TIMES ( REPEAT I TIMES ( REPEAT U TIMES ( INCREASE T CLEAR I ) ) REPEAT X TIMES ( REPEAT U TIMES ( INCREASE I ) ) ) REPEAT R TIMES ( REPEAT I TIMES ( REPEAT T TIMES ( CLEAR I ) ) REPEAT X TIMES ( REPEAT T TIMES ( INCREASE I CLEAR T ) ) ) CLEAR T CLEAR U CLEAR R INCREASE U REPEAT T TIMES ( CLEAR U ) CLEAR X REPEAT K TIMES ( INCREASE X ) REPEAT K TIMES ( REPEAT J TIMES ( REPEAT U TIMES ( INCREASE T CLEAR J ) ) REPEAT R TIMES ( REPEAT U TIMES ( INCREASE J ) ) ) REPEAT X TIMES ( REPEAT J TIMES ( REPEAT T TIMES ( CLEAR J ) ) REPEAT R TIMES ( REPEAT T TIMES ( INCREASE J CLEAR T ) ) ) CLEAR T CLEAR U CLEAR R INCREASE U REPEAT T TIMES ( CLEAR U ) CLEAR R REPEAT L TIMES ( INCREASE R ) REPEAT L TIMES ( REPEAT K TIMES ( REPEAT U TIMES ( INCREASE T CLEAR K ) ) REPEAT X TIMES ( REPEAT U TIMES ( INCREASE K ) ) ) REPEAT R TIMES ( REPEAT K TIMES ( REPEAT T TIMES ( CLEAR K ) ) REPEAT X TIMES ( REPEAT T TIMES ( INCREASE K CLEAR T ) ) ) CLEAR T CLEAR U CLEAR R INCREASE U REPEAT T TIMES ( CLEAR U ) CLEAR X REPEAT M TIMES ( INCREASE X ) REPEAT M TIMES ( REPEAT L TIMES ( REPEAT U TIMES ( INCREASE T CLEAR L ) ) REPEAT R TIMES ( REPEAT U TIMES ( INCREASE L ) ) ) REPEAT X TIMES ( REPEAT L TIMES ( REPEAT T TIMES ( CLEAR L ) ) REPEAT R TIMES ( REPEAT T TIMES ( INCREASE L CLEAR T ) ) ) CLEAR T CLEAR U CLEAR R INCREASE U REPEAT T TIMES ( CLEAR U ) CLEAR R REPEAT N TIMES ( INCREASE R ) REPEAT N TIMES ( REPEAT M TIMES ( REPEAT U TIMES ( INCREASE T CLEAR M ) ) REPEAT X TIMES ( REPEAT U TIMES ( INCREASE M ) ) ) REPEAT R TIMES ( REPEAT M TIMES ( REPEAT T TIMES ( CLEAR M ) ) REPEAT X TIMES ( REPEAT T TIMES ( INCREASE M CLEAR T ) ) ) CLEAR T CLEAR U CLEAR R INCREASE U REPEAT T TIMES ( CLEAR U ) CLEAR X REPEAT O TIMES ( INCREASE X ) REPEAT O TIMES ( REPEAT N TIMES ( REPEAT U TIMES ( INCREASE T CLEAR N ) ) REPEAT R TIMES ( REPEAT U TIMES ( INCREASE N ) ) ) REPEAT X TIMES ( REPEAT N TIMES ( REPEAT T TIMES ( CLEAR N ) ) REPEAT R TIMES ( REPEAT T TIMES ( INCREASE N CLEAR T ) ) ) CLEAR T CLEAR U CLEAR R INCREASE U REPEAT T TIMES ( CLEAR U ) CLEAR R REPEAT P TIMES ( INCREASE R ) REPEAT P TIMES ( REPEAT O TIMES ( REPEAT U TIMES ( INCREASE T CLEAR O ) ) REPEAT X TIMES ( REPEAT U TIMES ( INCREASE O ) ) ) REPEAT R TIMES ( REPEAT O TIMES ( REPEAT T TIMES ( CLEAR O ) ) REPEAT X TIMES ( REPEAT T TIMES ( INCREASE O CLEAR T ) ) ) CLEAR T CLEAR U CLEAR R INCREASE U REPEAT T TIMES ( CLEAR U ) CLEAR X REPEAT Q TIMES ( INCREASE X ) REPEAT Q TIMES ( REPEAT P TIMES ( REPEAT U TIMES ( INCREASE T CLEAR P ) ) REPEAT R TIMES ( REPEAT U TIMES ( INCREASE P ) ) ) REPEAT X TIMES ( REPEAT P TIMES ( REPEAT T TIMES ( CLEAR P ) ) REPEAT R TIMES ( REPEAT T TIMES ( INCREASE P CLEAR T ) ) ) # +1 ainoo mikä puuttuu CLEAR R INCREASE R REPEAT A TIMES ( CLEAR R ) CLEAR S REPEAT A TIMES ( INCREASE S ) REPEAT R TIMES ( INCREASE A ) REPEAT S TIMES ( CLEAR A CLEAR R INCREASE R REPEAT B TIMES ( CLEAR R ) CLEAR S REPEAT B TIMES ( INCREASE S ) REPEAT R TIMES ( INCREASE B ) REPEAT S TIMES ( CLEAR B CLEAR R INCREASE R REPEAT C TIMES ( CLEAR R ) CLEAR S REPEAT C TIMES ( INCREASE S ) REPEAT R TIMES ( INCREASE C ) REPEAT S TIMES ( CLEAR C CLEAR R INCREASE R REPEAT D TIMES ( CLEAR R ) CLEAR S REPEAT D TIMES ( INCREASE S ) REPEAT R TIMES ( INCREASE D ) REPEAT S TIMES ( CLEAR D CLEAR R INCREASE R REPEAT E TIMES ( CLEAR R ) CLEAR S REPEAT E TIMES ( INCREASE S ) REPEAT R TIMES ( INCREASE E ) REPEAT S TIMES ( CLEAR E CLEAR R INCREASE R REPEAT F TIMES ( CLEAR R ) CLEAR S REPEAT F TIMES ( INCREASE S ) REPEAT R TIMES ( INCREASE F ) REPEAT S TIMES ( CLEAR F CLEAR R INCREASE R REPEAT G TIMES ( CLEAR R ) CLEAR S REPEAT G TIMES ( INCREASE S ) REPEAT R TIMES ( INCREASE G ) REPEAT S TIMES ( CLEAR G CLEAR R INCREASE R REPEAT H TIMES ( CLEAR R ) CLEAR S REPEAT H TIMES ( INCREASE S ) REPEAT R TIMES ( INCREASE H ) REPEAT S TIMES ( CLEAR H CLEAR R INCREASE R REPEAT I TIMES ( CLEAR R ) CLEAR S REPEAT I TIMES ( INCREASE S ) REPEAT R TIMES ( INCREASE I ) REPEAT S TIMES ( CLEAR I CLEAR R INCREASE R REPEAT J TIMES ( CLEAR R ) CLEAR S REPEAT J TIMES ( INCREASE S ) REPEAT R TIMES ( INCREASE J ) REPEAT S TIMES ( CLEAR J CLEAR R INCREASE R REPEAT K TIMES ( CLEAR R ) CLEAR S REPEAT K TIMES ( INCREASE S ) REPEAT R TIMES ( INCREASE K ) REPEAT S TIMES ( CLEAR K CLEAR R INCREASE R REPEAT L TIMES ( CLEAR R ) CLEAR S REPEAT L TIMES ( INCREASE S ) REPEAT R TIMES ( INCREASE L ) REPEAT S TIMES ( CLEAR L CLEAR R INCREASE R REPEAT M TIMES ( CLEAR R ) CLEAR S REPEAT M TIMES ( INCREASE S ) REPEAT R TIMES ( INCREASE M ) REPEAT S TIMES ( CLEAR M CLEAR R INCREASE R REPEAT N TIMES ( CLEAR R ) CLEAR S REPEAT N TIMES ( INCREASE S ) REPEAT R TIMES ( INCREASE N ) REPEAT S TIMES ( CLEAR N CLEAR R INCREASE R REPEAT O TIMES ( CLEAR R ) CLEAR S REPEAT O TIMES ( INCREASE S ) REPEAT R TIMES ( INCREASE O ) REPEAT S TIMES ( CLEAR O CLEAR R INCREASE R REPEAT P TIMES ( CLEAR R ) CLEAR S REPEAT P TIMES ( INCREASE S ) REPEAT R TIMES ( INCREASE P ) REPEAT S TIMES ( CLEAR P CLEAR R INCREASE R REPEAT Q TIMES ( CLEAR R ) CLEAR S REPEAT Q TIMES ( INCREASE S ) REPEAT R TIMES ( INCREASE Q ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) # x/2 REPEAT R TIMES ( REPEAT B TIMES ( INCREASE A ) CLEAR B REPEAT C TIMES ( INCREASE B ) CLEAR C REPEAT D TIMES ( INCREASE C ) CLEAR D REPEAT E TIMES ( INCREASE D ) CLEAR E REPEAT F TIMES ( INCREASE E ) CLEAR F REPEAT G TIMES ( INCREASE F ) CLEAR G REPEAT H TIMES ( INCREASE G ) CLEAR H REPEAT I TIMES ( INCREASE H ) CLEAR I REPEAT J TIMES ( INCREASE I ) CLEAR J REPEAT K TIMES ( INCREASE J ) CLEAR K REPEAT L TIMES ( INCREASE K ) CLEAR L REPEAT M TIMES ( INCREASE L ) CLEAR M REPEAT N TIMES ( INCREASE M ) CLEAR N REPEAT O TIMES ( INCREASE N ) CLEAR O REPEAT P TIMES ( INCREASE O ) CLEAR P REPEAT Q TIMES ( INCREASE P ) CLEAR Q CLEAR R ) # print CLEAR X CLEAR T REPEAT A TIMES ( INCREASE X ) INCREASE T INCREASE T REPEAT B TIMES ( REPEAT T TIMES ( INCREASE X ) ) REPEAT T TIMES ( INCREASE T ) REPEAT C TIMES ( REPEAT T TIMES ( INCREASE X ) ) REPEAT T TIMES ( INCREASE T ) REPEAT D TIMES ( REPEAT T TIMES ( INCREASE X ) ) REPEAT T TIMES ( INCREASE T ) REPEAT E TIMES ( REPEAT T TIMES ( INCREASE X ) ) REPEAT T TIMES ( INCREASE T ) REPEAT F TIMES ( REPEAT T TIMES ( INCREASE X ) ) REPEAT T TIMES ( INCREASE T ) REPEAT G TIMES ( REPEAT T TIMES ( INCREASE X ) ) REPEAT T TIMES ( INCREASE T ) REPEAT H TIMES ( REPEAT T TIMES ( INCREASE X ) ) REPEAT T TIMES ( INCREASE T ) REPEAT I TIMES ( REPEAT T TIMES ( INCREASE X ) ) REPEAT T TIMES ( INCREASE T ) REPEAT J TIMES ( REPEAT T TIMES ( INCREASE X ) ) REPEAT T TIMES ( INCREASE T ) REPEAT K TIMES ( REPEAT T TIMES ( INCREASE X ) ) REPEAT T TIMES ( INCREASE T ) REPEAT L TIMES ( REPEAT T TIMES ( INCREASE X ) ) REPEAT T TIMES ( INCREASE T ) REPEAT M TIMES ( REPEAT T TIMES ( INCREASE X ) ) REPEAT T TIMES ( INCREASE T ) REPEAT N TIMES ( REPEAT T TIMES ( INCREASE X ) ) REPEAT T TIMES ( INCREASE T ) REPEAT O TIMES ( REPEAT T TIMES ( INCREASE X ) ) REPEAT T TIMES ( INCREASE T ) REPEAT P TIMES ( REPEAT T TIMES ( INCREASE X ) ) REPEAT Q TIMES ( REPEAT T TIMES ( INCREASE X ) REPEAT T TIMES ( INCREASE X ) ) PRINT X ) )