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

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

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

class D:
    def __init__(self, txt: str):
        self.o: A = None
        self.u: A = None
        self.q: B = None
        self.x: B = None
        self.v: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: D = None
        self.q: C = None
        self.s: F = None
        self.v: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: E = None
        self.w: C = None
        self.z: A = None
        self.x: G = None
        self.r: E = None
        self.s: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.w: H = None
        self.t: I = None
        self.x: H = None
        self.r: A = None
        self.u: E = None
        self.y: I = None
        self.z: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: B = None
        self.y: C = None
        self.z: C = None
        self.o: F = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.o: A = None
        self.u: A = None
        self.q: B = None
        self.x: B = None
        self.v: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: D = None
        self.q: C = None
        self.s: F = None
        self.v: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: E = None
        self.w: C = None
        self.z: A = None
        self.x: G = None
        self.r: E = None
        self.s: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.w: H = None
        self.t: I = None
        self.x: H = None
        self.r: A = None
        self.u: E = None
        self.y: I = None
        self.z: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: B = None
        self.y: C = None
        self.z: C = None
        self.o: F = None
        self.txt = txt

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

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

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