Write RPS (HW1-3)