a = gets.to_i ans=10**9 for i in 2..61 now = i.clone j = 1 while nowi*j end puts ans