import java.io.BufferedReader;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
class HasStatic {
private static int x = 100;
public static void main(String[] args) {
/*FileInputStream fis;
FileOutputStream out;
try {
fis = new FileInputStream("d:/text.txt");
BufferedInputStream bs=new BufferedInputStream(fis);
out = new FileOutputStream("d:/new.txt");
byte[] b=new byte[512];
int len;
while((len=bs.read(b,0,512))!=-1){
out.write(b,0,len);
out.flush();
}
fis.close();
out.close();
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
*/
try {
BufferedReader br=new BufferedReader(new InputStreamReader(System.in ));
String s=br.readLine();
System.out.println(s);
FileOutputStream out=new FileOutputStream("d:/tt.txt");
byte[] b=s.getBytes();
out.write(b);
out.close();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
class HasStatic {
private static int x = 100;
public static void main(String[] args) {
/*FileInputStream fis;
FileOutputStream out;
try {
fis = new FileInputStream("d:/text.txt");
BufferedInputStream bs=new BufferedInputStream(fis);
out = new FileOutputStream("d:/new.txt");
byte[] b=new byte[512];
int len;
while((len=bs.read(b,0,512))!=-1){
out.write(b,0,len);
out.flush();
}
fis.close();
out.close();
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
*/
try {
BufferedReader br=new BufferedReader(new InputStreamReader(System.in ));
String s=br.readLine();
System.out.println(s);
FileOutputStream out=new FileOutputStream("d:/tt.txt");
byte[] b=s.getBytes();
out.write(b);
out.close();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}