#include #define rep(i, n) for(int i = 0; i < (int)(n); i++) #define all(x) (x).begin(),(x).end() #define rall(x) (x).rbegin(),(x).rend() #define UNIQUE(v) v.erase( unique(v.begin(), v.end()), v.end() ); using namespace std; using ll = long long; int a[] = {1, 4, 2, 8, 5, 7}; int main(){ int n; cin >> n; string ans = "0"; if(n != 0) ans += "."; rep(i, n){ ans += to_string(a[i%6]); } cout << ans << endl; }