import java.util.Scanner; public class Main { static final int IMPOSSIBLE = -1; static public void main(String[]args) throws Exception { Scanner sc = new Scanner(System.in); String s = sc.next(); solve(s); } static void solve(String s) throws Exception { int [] alphabet = new int[26]; for(int i=0; i