class A:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: H = None
        self.t: E = None
        self.u: E = None
        self.x: C = None
        self.q: F = None
        self.y: H = None
        self.z: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: C = None
        self.y: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: A = None
        self.u: H = None
        self.y: G = None
        self.r: A = None
        self.t: A = None
        self.z: G = None
        self.w: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: E = None
        self.t: H = None
        self.w: C = None
        self.txt = txt

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

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

j = A("j")
m = B("m")
b = C("b")
g = D("g")
d = E("d")
c = F("c")
e = G("e")
l = H("l")
n = B("n")

j.o = e
m.v = l
m.y = l
m.t = d
m.u = d
m.x = b
m.q = c
m.z = c
b.s = g
b.w = e
b.o = j
b.t = j
b.r = l
b.v = d
g.o = b
g.y = l
d.o = j
d.r = j
d.t = j
d.u = l
d.y = e
d.z = e
d.w = b
c.z = d
c.t = l
c.w = b
e.v = g
e.o = j
e.r = c
e.y = m
e.t = d
l.w = m
l.v = c
n.v = l
n.y = l
n.t = d
n.u = d
n.x = b
n.q = c
n.z = c
assert c.z.r.o.r.t.w.x.txt == "
class A:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: H = None
        self.t: E = None
        self.u: E = None
        self.x: C = None
        self.q: F = None
        self.y: H = None
        self.z: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: C = None
        self.y: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: A = None
        self.u: H = None
        self.y: G = None
        self.r: A = None
        self.t: A = None
        self.z: G = None
        self.w: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: E = None
        self.t: H = None
        self.w: C = None
        self.txt = txt

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

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

j = A("j")
m = B("m")
b = C("b")
g = D("g")
d = E("d")
c = F("c")
e = G("e")
l = H("l")
n = B("n")

j.o = e
m.v = l
m.y = l
m.t = d
m.u = d
m.x = b
m.q = c
m.z = c
b.s = g
b.w = e
b.o = j
b.t = j
b.r = l
b.v = d
g.o = b
g.y = l
d.o = j
d.r = j
d.t = j
d.u = l
d.y = e
d.z = e
d.w = b
c.z = d
c.t = l
c.w = b
e.v = g
e.o = j
e.r = c
e.y = m
e.t = d
l.w = m
l.v = c
n.v = l
n.y = l
n.t = d
n.u = d
n.x = b
n.q = c
n.z = c
assert c.z.r.o.r.t.w.x.txt == "b"