summaryrefslogtreecommitdiffstats
path: root/šola/p2/dn/DN01b_63230317.c
blob: cebcc8397015fac7532a1088de17fc154b1d1e47 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <stdio.h>
void printInt (int a) {
	if (a < 0) {
		a = -a;
		putchar('-');
	}
	int števke[29];
	int len = 0;
	while (a > 0) {
		števke[len++] = a%10;
		a /= 10;
	}
	for (int i = len-1; i >= 0; i--)
		putchar('0'+števke[i]);
}
int main (void) {
	while (getchar() == '0');
	int po_prvi_enici = 0;
	while ((getchar() & ~1) == '0')
		po_prvi_enici++;
	printInt(++po_prvi_enici);
	putchar('\n');
	return 0;
}