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

class B:
    def __init__(self, txt: str):
        self.r: D = None
        self.p: G = None
        self.t: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.z: H = None
        self.t: B = None
        self.x: C = None
        self.o: F = None
        self.y: H = None
        self.p: G = None
        self.r: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.t: F = None
        self.q: B = None
        self.x: F = None
        self.v: B = None
        self.s: A = None
        self.o: A = None
        self.u: F = None
        self.w: F = None
        self.txt = txt

e = A("e")
k = B("k")
j = C("j")
f = D("f")
i = E("i")
c = F("c")
m = G("m")
l = H("l")
b = G("b")
d = D("d")

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

class B:
    def __init__(self, txt: str):
        self.r: D = None
        self.p: G = None
        self.t: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.z: H = None
        self.t: B = None
        self.x: C = None
        self.o: F = None
        self.y: H = None
        self.p: G = None
        self.r: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.t: F = None
        self.q: B = None
        self.x: F = None
        self.v: B = None
        self.s: A = None
        self.o: A = None
        self.u: F = None
        self.w: F = None
        self.txt = txt

e = A("e")
k = B("k")
j = C("j")
f = D("f")
i = E("i")
c = F("c")
m = G("m")
l = H("l")
b = G("b")
d = D("d")

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