Problem 108

BUG: deadly slow