@dulaldulal: Nice solution.