def recursion_check(arities):
b=sum(1-x for x in arities)
print("There are now %d item%s in the stack."%(b,"s"[:b!=1]))
if b>0:
print("There is no recursion.")
else:
print("There is recursion.")
recursion_check([0,0,0,0,1,1,2,2,2])
print("")
recursion_check([0,0,0,0,1,1,2,2,2,2])
ZGVmIHJlY3Vyc2lvbl9jaGVjayhhcml0aWVzKToKCWI9c3VtKDEteCBmb3IgeCBpbiBhcml0aWVzKQoJcHJpbnQoIlRoZXJlIGFyZSBub3cgJWQgaXRlbSVzIGluIHRoZSBzdGFjay4iJShiLCJzIls6YiE9MV0pKQoJaWYgYj4wOgoJCXByaW50KCJUaGVyZSBpcyBubyByZWN1cnNpb24uIikKCWVsc2U6CgkJcHJpbnQoIlRoZXJlIGlzIHJlY3Vyc2lvbi4iKQoKcmVjdXJzaW9uX2NoZWNrKFswLDAsMCwwLDEsMSwyLDIsMl0pCnByaW50KCIiKQpyZWN1cnNpb25fY2hlY2soWzAsMCwwLDAsMSwxLDIsMiwyLDJdKQ==