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

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

class C:
    def __init__(self, txt: str):
        self.q: I = None
        self.w: A = None
        self.t: A = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.x: A = None
        self.o: C = None
        self.t: B = None
        self.q: I = None
        self.p: A = None
        self.u: F = None
        self.v: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: C = None
        self.w: H = None
        self.r: D = None
        self.x: D = None
        self.v: A = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: I = None
        self.w: A = None
        self.t: A = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.x: A = None
        self.o: C = None
        self.t: B = None
        self.q: I = None
        self.p: A = None
        self.u: F = None
        self.v: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: C = None
        self.w: H = None
        self.r: D = None
        self.x: D = None
        self.v: A = None
        self.txt = txt

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

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