class A:
    def __init__(self, txt: str):
        self.z: E = None
        self.s: D = None
        self.x: B = None
        self.u: G = None
        self.o: B = None
        self.y: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: E = None
        self.t: H = None
        self.p: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: E = None
        self.x: D = None
        self.o: F = None
        self.v: F = None
        self.q: G = None
        self.p: F = None
        self.z: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: D = None
        self.t: G = None
        self.w: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: G = None
        self.o: C = None
        self.p: F = None
        self.txt = txt

i = A("i")
h = B("h")
a = C("a")
e = D("e")
l = E("l")
j = F("j")
f = G("f")
k = H("k")

i.z = l
i.s = e
i.y = e
i.x = h
i.o = h
i.u = f
h.o = l
h.t = k
h.p = j
a.r = l
a.x = e
a.o = j
a.v = j
a.p = j
a.q = f
a.z = i
e.p = l
l.o = f
l.t = f
l.s = e
l.w = h
j.r = f
f.s = a
k.s = f
k.o = a
k.p = j
assert i.s.p.w.p.r.s.r.txt == "
class A:
    def __init__(self, txt: str):
        self.z: E = None
        self.s: D = None
        self.x: B = None
        self.u: G = None
        self.o: B = None
        self.y: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: E = None
        self.t: H = None
        self.p: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: E = None
        self.x: D = None
        self.o: F = None
        self.v: F = None
        self.q: G = None
        self.p: F = None
        self.z: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: D = None
        self.t: G = None
        self.w: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: G = None
        self.o: C = None
        self.p: F = None
        self.txt = txt

i = A("i")
h = B("h")
a = C("a")
e = D("e")
l = E("l")
j = F("j")
f = G("f")
k = H("k")

i.z = l
i.s = e
i.y = e
i.x = h
i.o = h
i.u = f
h.o = l
h.t = k
h.p = j
a.r = l
a.x = e
a.o = j
a.v = j
a.p = j
a.q = f
a.z = i
e.p = l
l.o = f
l.t = f
l.s = e
l.w = h
j.r = f
f.s = a
k.s = f
k.o = a
k.p = j
assert i.s.p.w.p.r.s.r.txt == "l"