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

class B:
    def __init__(self, txt: str):
        self.o: A = None
        self.t: C = None
        self.w: F = None
        self.u: G = None
        self.y: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: A = None
        self.u: I = None
        self.r: H = None
        self.w: F = None
        self.t: E = None
        self.q: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.w: I = None
        self.o: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: I = None
        self.p: C = None
        self.v: G = None
        self.r: F = None
        self.o: D = None
        self.x: E = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: A = None
        self.t: C = None
        self.w: F = None
        self.u: G = None
        self.y: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: A = None
        self.u: I = None
        self.r: H = None
        self.w: F = None
        self.t: E = None
        self.q: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.w: I = None
        self.o: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: I = None
        self.p: C = None
        self.v: G = None
        self.r: F = None
        self.o: D = None
        self.x: E = None
        self.txt = txt

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

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

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