def sah(n): if n == 1: return 1 else: return pow(2,n-1)+sah(n-1) n = input('n = ') n = int(n) print('Na',n,'polja ima ukupno',sah(n),'zrna.')