#include using namespace std; typedef long long ll; typedef pair pii; #define pb push_back #define mp make_pair #define rep(i,n) for(int i=0;i<(n);++i) int main(){ cin.tie(0); ios::sync_with_stdio(false); int n;cin >> n; string s="142857"; if(n==0) cout << 0 << endl; else{ cout << "0."; while(n>0){ if(n>=6){ cout << s; n-=6; } else{ cout << s.substr(0,n); n=0; } } cout << endl; } }