Our java code for the 2014 competition