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

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.t: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: C = None
        self.v: F = None
        self.z: G = None
        self.r: G = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.t: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: C = None
        self.v: F = None
        self.z: G = None
        self.r: G = None
        self.txt = txt

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

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