Python
c =input("py") n =int (input("ps")) f =0 fb =0 if c=='red': f=f+1 else: if n<9: f=f+n else:fb +1 print(f)