JSOI
I'm not supposed to do this now (there are 12 mins left in JSOI) but who cares
my result: 100+30+6+7+0=143>112 :D