/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
public class Main
{
//private static StreamTokenizer in = new StreamTokeniser();
//private static Scanner in = new Scanner(System.in);
{
StringBuilder a;
a = new StringBuilder(in.readLine());
int j = 0;
boolean isSpace = false;
if(a.
length() == 0) System.
exit(0); for(int i = 0; i < a.length(); i++){
if(a.charAt(i) == ' '){
if(!isSpace){
isSpace = true;
a.setCharAt(j,a.charAt(i));
j++;
}
}
else{
isSpace = false;
a.setCharAt(j,a.charAt(i));
j++;
}
}
a.delete(j, a.length());
if(a.charAt(a.length() - 1) == ' ') a.delete(a.length() - 1, a.length());
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgoKcHVibGljIGNsYXNzIE1haW4KewoJcHJpdmF0ZSBzdGF0aWMgQnVmZmVyZWRSZWFkZXIgaW4gPSBuZXcgQnVmZmVyZWRSZWFkZXIobmV3IElucHV0U3RyZWFtUmVhZGVyKFN5c3RlbS5pbikpOwoJLy9wcml2YXRlIHN0YXRpYyBTdHJlYW1Ub2tlbml6ZXIgaW4gPSBuZXcgU3RyZWFtVG9rZW5pc2VyKCk7CgkvL3ByaXZhdGUgc3RhdGljIFNjYW5uZXIgaW4gPSBuZXcgU2Nhbm5lcihTeXN0ZW0uaW4pOwoJCglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgdGhyb3dzIGphdmEubGFuZy5FeGNlcHRpb24KCXsKCQlTdHJpbmdCdWlsZGVyIGE7CgkJYSA9IG5ldyBTdHJpbmdCdWlsZGVyKGluLnJlYWRMaW5lKCkpOwoJCWludCBqID0gMDsKCQlib29sZWFuIGlzU3BhY2UgPSBmYWxzZTsKCQlpZihhLmxlbmd0aCgpID09IDApIFN5c3RlbS5leGl0KDApOwoJCWZvcihpbnQgaSA9IDA7IGkgPCBhLmxlbmd0aCgpOyBpKyspewoJCQlpZihhLmNoYXJBdChpKSA9PSAnICcpewoJCQkJaWYoIWlzU3BhY2UpewoJCQkJCWlzU3BhY2UgPSB0cnVlOwoJCQkJCWEuc2V0Q2hhckF0KGosYS5jaGFyQXQoaSkpOwoJCQkJCWorKzsKCQkJCX0KCQkJfQoJCQllbHNlewoJCQkJaXNTcGFjZSA9IGZhbHNlOwoJCQkJYS5zZXRDaGFyQXQoaixhLmNoYXJBdChpKSk7CgkJCQlqKys7CgkJCX0KCQl9CgkJYS5kZWxldGUoaiwgYS5sZW5ndGgoKSk7CgkJaWYoYS5jaGFyQXQoYS5sZW5ndGgoKSAtIDEpID09ICcgJykgYS5kZWxldGUoYS5sZW5ndGgoKSAtIDEsIGEubGVuZ3RoKCkpOwoJCVN5c3RlbS5vdXQucHJpbnRsbihhKTsKCX0KfQo=
IExlb25hcmRvICAgICAgICAgICAgICAgICAgICAgICAgICAgICB3YXMsIGFuZCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaXMsICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZW5vd25lZCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwcmltYXJpbHkgICAgICAgICAgICAgICAgICAgICAgICAgYXMgYSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcGFpbnRlci4=
Leonardo was, and is, renowned primarily as a painter.