//import java.util.Scanner;
//public class Main {
// public static void main(String[] args) {
// Scanner t = new Scanner(System.in);
// int n = t.nextInt();
// int m = (n%10*10+n/10)*2;
// if(m>100) {
// m = m-100;
// if(m<=50) {
// System.out.println(m);
// System.out.println("GOOD");
// }
// else {
// System.out.println(m);
// System.out.println("OH MY GOD");
// }
// }
// else {
// if(m<=50) {
// System.out.println(m);
// System.out.println("GOOD");
// }
// else {
// System.out.println(m);
// System.out.println("OH MY GOD");
// }
// }
// }
//}
//import java.util.*;
//public class Main {
// public static void main(String[] args) {
// Scanner t = new Scanner(System.in);
// double a = t.nextDouble();
// double b = t.nextDouble();
// double c = t.nextDouble();
// double d = t.nextDouble();
// if(a/b > c/d) {
// System.out.println(">");
// }
// else if(a/b == c/d) {
// System.out.println("=");
// }
// else {
// System.out.println("<");
// }
// }
//}
//import java.util.*;
//public class Main {
// public static void main(String[] args) {
// Scanner t = new Scanner(System.in);
// int a = t.nextInt();
// int b = t.nextInt();
// int c = t.nextInt();
// int x = (a>b ? a:b)>c ? (a>b ? a:b):c;
// if(x==c) {
// if(c<a+b) {
// System.out.println("yes");
// }
// else {
// System.out.println("no");
// }
// }
// else if(x==b) {
// if(b<a+c) {
// System.out.println("yes");
// }
// else {
// System.out.println("no");
// }
// }
// else {
// if(a<b+c) {
// System.out.println("yes");
// }
// else {
// System.out.println("no");
// }
// }
// }
//}
//import java.util.*;
//public class Main {
// public static void main(String[] args) {
// Scanner t = new Scanner(System.in);
// int a = t.nextInt();
// int d = t.nextInt();
// int n = t.nextInt();
// int i;
// int sum;
// sum=a;
// for(i=0;i<n-1;i++) {
// sum+=d;
// }
// System.out.println(sum);
// }
//}
//import java.util.*;
//public class Main {
// public static void main(String[] args) {
// Scanner t = new Scanner(System.in);
// double a = t.nextDouble();
// double r = t.nextDouble();
// double n = t.nextDouble();
// int i;
// double sum;
// sum=a;
// for(i=0;i<n-1;i++) {
// sum*=r;
// }
// System.out.printf("%.0f",sum);
// }
//}
//import java.util.*;
//public class Main {
// public static void main(String[] args) {
// Scanner t = new Scanner(System.in);
// long a = t.nextLong();
// long m = t.nextLong();
// long d = t.nextLong();
// long n = t.nextLong();
// int i;
// long sum=a;
// for(i=0;i<n-1;i++) {
// sum=sum*m+d;
// }
// System.out.println(sum);
// }
//}
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner t =new Scanner(System.in);
int n = t.nextInt();
int i;
int a=10;
for(i=0;;i++) {
if(n/a==1) {
a*=10;
}
else {
a=a;
}
}
System.out.println(+1);
}
}