class A:
    def __init__(self, txt: str):
        self.p: C = None
        self.t: C = None
        self.s: G = None
        self.w: F = None
        self.y: I = None
        self.z: H = None
        self.u: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.v: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.v: A = None
        self.s: D = None
        self.t: I = None
        self.r: C = None
        self.q: I = None
        self.p: I = None
        self.y: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: A = None
        self.z: F = None
        self.v: H = None
        self.t: E = None
        self.x: D = None
        self.txt = txt

e = A("e")
i = B("i")
h = C("h")
j = D("j")
b = E("b")
n = F("n")
m = G("m")
a = H("a")
f = I("f")
c = I("c")

e.p = h
e.t = h
e.s = m
e.w = n
e.y = c
e.z = a
e.u = i
i.r = b
i.v = n
h.v = m
j.z = a
b.v = m
b.z = m
n.w = j
n.s = j
n.v = e
n.t = c
n.p = c
n.r = h
n.q = f
n.y = m
m.v = b
a.s = n
f.p = e
f.z = n
f.v = a
f.t = b
f.x = j
c.p = e
c.z = n
c.v = a
c.t = b
c.x = j
assert c.z.q.p.u.txt == "
class A:
    def __init__(self, txt: str):
        self.p: C = None
        self.t: C = None
        self.s: G = None
        self.w: F = None
        self.y: I = None
        self.z: H = None
        self.u: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.v: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.v: A = None
        self.s: D = None
        self.t: I = None
        self.r: C = None
        self.q: I = None
        self.p: I = None
        self.y: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: A = None
        self.z: F = None
        self.v: H = None
        self.t: E = None
        self.x: D = None
        self.txt = txt

e = A("e")
i = B("i")
h = C("h")
j = D("j")
b = E("b")
n = F("n")
m = G("m")
a = H("a")
f = I("f")
c = I("c")

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