On January 1st, 2023, a person saved Rs 1. On January 2nd, 2023, he saved Rs. 2 more than that on the previous day. On January 3rd, 2023, he saved Rs. 2 more than that on the previous day and so on. At the end of which date was his total savings a perfect square as well a perfect cube?