INPUT "vvedite familiyu ",f$
INPUT "vvedite imya ",n$
FOR i=1 TO LEN(n$)
n1$=MID$(n$,i,1)+n1$
NEXT
FOR i=1 TO LEN(f$)
f1$=MID$(f$,i,1)+f1$
NEXT
IF LEN(n$)>len(f$) THEN PRINT n1$;" ";f$ ELSE IF LEN(f$)>len(n$)THEN PRINT f1$;" ";n$ ELSE PRINT f1$;" ";n1$