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

class B:
    def __init__(self, txt: str):
        self.w: F = None
        self.p: H = None
        self.x: A = None
        self.y: F = None
        self.r: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: G = None
        self.p: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: C = None
        self.w: D = None
        self.s: F = None
        self.r: H = None
        self.o: A = None
        self.v: G = None
        self.z: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: E = None
        self.r: D = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: F = None
        self.p: H = None
        self.x: A = None
        self.y: F = None
        self.r: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: G = None
        self.p: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: C = None
        self.w: D = None
        self.s: F = None
        self.r: H = None
        self.o: A = None
        self.v: G = None
        self.z: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: E = None
        self.r: D = None
        self.txt = txt

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

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

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