port java.lang.*;
public class abc{
static final int n=100000,j=500;
public static void main(String argv[]){
double x[]=new double[n+1];
double v[]=new double[n+1];
double dt=2*Math.PI/n;
x[0]=0;
v[0]=1;
for(int i=0;i<n;++i){
x[i+1]=x[i]+v[i]*dt;
v[i+1]=v[i]-x[i]*dt;
}
double t=0;
double jdt=j*dt;
for(int i=0;i<n;i+=j){
System.out.println(t +" " + x[i] + " "+ v[i]);
t+=jdt;
}
}
public class abc{
static final int n=100000,j=500;
public static void main(String argv[]){
double x[]=new double[n+1];
double v[]=new double[n+1];
double dt=2*Math.PI/n;
x[0]=0;
v[0]=1;
for(int i=0;i<n;++i){
x[i+1]=x[i]+v[i]*dt;
v[i+1]=v[i]-x[i]*dt;
}
double t=0;
double jdt=j*dt;
for(int i=0;i<n;i+=j){
System.out.println(t +" " + x[i] + " "+ v[i]);
t+=jdt;
}
}