Anders Kaseorg's submission of Friend or Girlfriend | CodeChef