CF286B Shifting

Description

John Doe has found the beautiful permutation formula. Let's take permutation $ p=p_{1},p_{2},...,p_{n} $ . Let's define transformation $ f $ of this permutation: ![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF286B/25e74201607d55d0e22ffd7930ca53b5830fbc7a.png)where $ k $ $ (k>1) $ is an integer, the transformation parameter, $ r $ is such maximum integer that $ rk

Input Format

A single line contains integer $ n $ ( $ 2

Output Format

Print $ n $ distinct space-separated integers from $ 1 $ to $ n $ — a beautiful permutation of size $ n $ .

Explanation/Hint

A note to the third test sample: - $ f([1,2,3,4],2)=[2,1,4,3] $ - $ f([2,1,4,3],3)=[1,4,2,3] $ - $ f([1,4,2,3],4)=[4,2,3,1] $