int ostatni(Lista A) { if(A.nast == 0) return A.d; else return ostatni(*(A.nast)); }