UVa 11136 - Hoax or what

Easy. Don't use cin or cout and you could use a multiset :)