class A:
    def __init__(self, txt: str):
        self.y: F = None
        self.x: D = None
        self.u: F = None
        self.r: H = None
        self.w: G = None
        self.s: G = None
        self.z: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.q: D = None
        self.s: G = None
        self.r: B = None
        self.u: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: G = None
        self.u: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.p: A = None
        self.x: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: A = None
        self.p: F = None
        self.r: H = None
        self.u: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: B = None
        self.v: G = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.q: D = None
        self.s: G = None
        self.r: B = None
        self.u: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: G = None
        self.u: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.p: A = None
        self.x: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: A = None
        self.p: F = None
        self.r: H = None
        self.u: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: B = None
        self.v: G = None
        self.txt = txt

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

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