class A:
    def __init__(self, txt: str):
        self.o: F = None
        self.q: I = None
        self.y: F = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.x: F = None
        self.v: B = None
        self.o: I = None
        self.y: A = None
        self.r: A = None
        self.q: E = None
        self.z: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: H = None
        self.r: H = None
        self.u: A = None
        self.w: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.x: F = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.x: F = None
        self.v: B = None
        self.o: I = None
        self.y: A = None
        self.r: A = None
        self.q: E = None
        self.z: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: H = None
        self.r: H = None
        self.u: A = None
        self.w: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.x: F = None
        self.txt = txt

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

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