main = do t <- readLn mapM_ (putStr . show) (solve t) putStrLn "" solve :: Int -> [Int] solve n | n == 2 = [1] | n == 3 = [7] | n >= 4 = (solve (n-2)) ++ [1] | otherwise = []