class A:
    def __init__(self, txt: str):
        self.t: B = None
        self.v: D = None
        self.p: E = None
        self.s: E = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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