class A:
    def __init__(self, txt: str):
        self.q: D = None
        self.s: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.u: D = None
        self.r: E = None
        self.z: G = None
        self.q: G = None
        self.w: B = None
        self.o: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: F = None
        self.r: A = None
        self.u: B = None
        self.z: A = None
        self.v: A = None
        self.x: F = None
        self.p: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: C = None
        self.t: F = None
        self.s: D = None
        self.o: A = None
        self.v: A = None
        self.w: C = None
        self.u: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: B = None
        self.o: B = None
        self.t: A = None
        self.v: C = None
        self.txt = txt

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

j = A("j")
c = B("c")
m = C("m")
e = D("e")
h = E("h")
g = F("g")
i = G("i")
b = E("b")

j.q = e
j.s = g
c.r = j
c.t = j
c.w = j
c.x = i
m.p = g
m.u = e
m.r = b
m.z = i
m.q = i
m.w = c
m.o = c
e.s = g
e.x = g
e.r = j
e.z = j
e.v = j
e.p = j
e.u = c
h.r = m
h.w = m
h.t = g
h.s = e
h.o = j
h.v = j
h.u = j
g.r = c
g.o = c
g.t = j
g.v = m
i.y = c
i.z = g
b.r = m
b.w = m
b.t = g
b.s = e
b.o = j
b.v = j
b.u = j
assert c.x.y.t.q.txt == "
class A:
    def __init__(self, txt: str):
        self.q: D = None
        self.s: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.u: D = None
        self.r: E = None
        self.z: G = None
        self.q: G = None
        self.w: B = None
        self.o: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: F = None
        self.r: A = None
        self.u: B = None
        self.z: A = None
        self.v: A = None
        self.x: F = None
        self.p: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: C = None
        self.t: F = None
        self.s: D = None
        self.o: A = None
        self.v: A = None
        self.w: C = None
        self.u: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: B = None
        self.o: B = None
        self.t: A = None
        self.v: C = None
        self.txt = txt

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

j = A("j")
c = B("c")
m = C("m")
e = D("e")
h = E("h")
g = F("g")
i = G("i")
b = E("b")

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