class A:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: G = None
        self.z: E = None
        self.u: E = None
        self.t: A = None
        self.s: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: H = None
        self.p: C = None
        self.y: E = None
        self.r: E = None
        self.q: F = None
        self.w: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.x: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: A = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: G = None
        self.z: E = None
        self.u: E = None
        self.t: A = None
        self.s: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: H = None
        self.p: C = None
        self.y: E = None
        self.r: E = None
        self.q: F = None
        self.w: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.x: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: A = None
        self.txt = txt

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

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