package 力扣;
import java.util.Scanner;
public class 判断字符是否唯一 {
/**
* @param args
*/
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s = sc.next();
int head = 0;
int temp = 0;
boolean bool = true;
while(head<s.length()-1) {
temp++;
if(s.charAt(head)==s.charAt(temp))
{
bool = false;
break;
}
if(temp == s.length()-1) {
head++;
temp = head;
}
}
System.out.println(bool);
}
}