All the numbers that can be formed using the digits, 1, 2, 3, 4 are arranged in the increasing order in magnitude. The rank of the number 3241 is