class A:
    def __init__(self, txt: str):
        self.u: E = None
        self.z: H = None
        self.p: H = None
        self.y: E = None
        self.v: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: A = None
        self.v: E = None
        self.x: I = None
        self.t: F = None
        self.u: F = None
        self.p: G = None
        self.z: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: A = None
        self.p: A = None
        self.s: B = None
        self.u: F = None
        self.q: F = None
        self.w: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: I = None
        self.v: H = None
        self.t: G = None
        self.u: H = None
        self.z: G = None
        self.p: H = None
        self.q: A = None
        self.x: D = None
        self.s: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: C = None
        self.q: I = None
        self.t: H = None
        self.u: G = None
        self.v: A = None
        self.y: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: A = None
        self.o: F = None
        self.r: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: A = None
        self.y: D = None
        self.s: B = None
        self.o: B = None
        self.r: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: A = None
        self.v: E = None
        self.x: I = None
        self.t: F = None
        self.u: F = None
        self.p: G = None
        self.z: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: A = None
        self.p: A = None
        self.s: B = None
        self.u: F = None
        self.q: F = None
        self.w: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: I = None
        self.v: H = None
        self.t: G = None
        self.u: H = None
        self.z: G = None
        self.p: H = None
        self.q: A = None
        self.x: D = None
        self.s: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: C = None
        self.q: I = None
        self.t: H = None
        self.u: G = None
        self.v: A = None
        self.y: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: A = None
        self.o: F = None
        self.r: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: A = None
        self.y: D = None
        self.s: B = None
        self.o: B = None
        self.r: G = None
        self.txt = txt

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

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