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

class B:
    def __init__(self, txt: str):
        self.x: C = None
        self.y: H = None
        self.s: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: E = None
        self.o: G = None
        self.r: G = None
        self.v: G = None
        self.x: H = None
        self.q: C = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: D = None
        self.u: A = None
        self.z: A = None
        self.w: H = None
        self.p: D = None
        self.q: G = None
        self.x: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: H = None
        self.u: H = None
        self.w: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: E = None
        self.u: F = None
        self.r: F = None
        self.y: D = None
        self.t: D = None
        self.o: E = None
        self.q: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: C = None
        self.y: H = None
        self.s: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: E = None
        self.o: G = None
        self.r: G = None
        self.v: G = None
        self.x: H = None
        self.q: C = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: D = None
        self.u: A = None
        self.z: A = None
        self.w: H = None
        self.p: D = None
        self.q: G = None
        self.x: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: H = None
        self.u: H = None
        self.w: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: E = None
        self.u: F = None
        self.r: F = None
        self.y: D = None
        self.t: D = None
        self.o: E = None
        self.q: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: D = None
        self.txt = txt

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

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