class A:
    def __init__(self, txt: str):
        self.s: G = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.r: C = None
        self.u: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: G = None
        self.z: D = None
        self.q: B = None
        self.u: D = None
        self.r: E = None
        self.x: C = None
        self.txt = txt

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

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.r: C = None
        self.u: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: G = None
        self.z: D = None
        self.q: B = None
        self.u: D = None
        self.r: E = None
        self.x: C = None
        self.txt = txt

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

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

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

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