SCU 2009 warmup contest 10

G: Virtual Friends