Solution for 1003 is accepted.