solve 394 & 639