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

class B:
    def __init__(self, txt: str):
        self.q: C = None
        self.x: C = None
        self.o: B = None
        self.z: B = None
        self.r: G = None
        self.t: C = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.u: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.w: F = None
        self.o: D = None
        self.v: C = None
        self.x: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: C = None
        self.x: C = None
        self.o: B = None
        self.z: B = None
        self.r: G = None
        self.t: C = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.u: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.w: F = None
        self.o: D = None
        self.v: C = None
        self.x: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: F = None
        self.txt = txt

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

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