SCU 2007 warmup contest 5

F: The Bottom of a Graph