# [Python 3], <s>126</s> <s>111</s> <s>108</s> 103 bytes <!-- language-all: lang-python --> def f(c,a):x=sorted([a.count(i)for i in set(a)]);return([300,777,200,100,10][len(x)*(x[-1]!=3)]+c)//100 [Try it online!][TIO-jzeugkvo] [Python 3]: https://docs.python.org/3/ [TIO-jzeugkvo]: https://tio.run/##jZLbboQgEIav5Smmd9DSLoc11m286mMQLoyLqUkjG2QT@/QW8VCamLRm1GH4/gHyc/vyH7aX03Q1LbS4oTW5jNVgnTdXrOqXxt57jzvSWgcddD0MxuOaaPLmjL@7HivJGC2Kgorw5/HV6tP0eCSPeFTPXD9UkuinhpxOYXryZvDv9WAGqEAhCM/yjRmjoDiFMwVBIdea7lMsZmshUZR5kEgKPErOqYSvkizBxYwHUMZF5L/wAOYxfnUXBzhbmudxLyKl5VFzsZx2jRQvjnC5nHSNFH89wMvyTxxphGZfN0tme3d7LiizwaIWbxUVfGWaQjrmmqDMBWwv8tAzu7kuXBpLtsztma2qnwGZvgE "Python 3 – Try It Online"