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

class B:
    def __init__(self, txt: str):
        self.u: C = None
        self.p: A = None
        self.w: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: E = None
        self.p: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: F = None
        self.q: D = None
        self.x: D = None
        self.w: G = None
        self.t: F = None
        self.y: A = None
        self.u: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: C = None
        self.p: A = None
        self.w: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: E = None
        self.p: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: F = None
        self.q: D = None
        self.x: D = None
        self.w: G = None
        self.t: F = None
        self.y: A = None
        self.u: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: B = None
        self.txt = txt

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

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