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

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

class C:
    def __init__(self, txt: str):
        self.r: G = None
        self.x: G = None
        self.s: D = None
        self.z: E = None
        self.q: I = None
        self.v: I = None
        self.u: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: A = None
        self.r: B = None
        self.s: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: E = None
        self.t: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: G = None
        self.x: G = None
        self.s: D = None
        self.z: E = None
        self.q: I = None
        self.v: I = None
        self.u: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: A = None
        self.r: B = None
        self.s: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: E = None
        self.t: F = None
        self.txt = txt

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

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