import java.util.*; class Main { static Scanner s=new Scanner(System.in); static int gInt(){return Integer.parseInt(s.next());} public static void main(String[] args) throws Exception { System.out.println(Math.abs(10-s.next().length())); } }