Four digit numbers with all digits distinct are formed using the digits 1, 2, 3, 4, 5, 6, 7 in all possible ways. If \( p \) is the total number of numbers thus formed and \( q \) is the number of numbers greater than 3400 among them, then \( p : q = \):