class A:
    def __init__(self, txt: str):
        self.u: D = None
        self.z: E = None
        self.p: B = None
        self.s: F = None
        self.t: G = None
        self.w: E = None
        self.y: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: F = None
        self.y: G = None
        self.q: C = None
        self.t: E = None
        self.v: F = None
        self.r: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.q: E = None
        self.r: D = None
        self.s: G = None
        self.y: A = None
        self.w: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: B = None
        self.txt = txt

k = A("k")
g = B("g")
l = C("l")
j = D("j")
n = E("n")
m = F("m")
f = G("f")
h = F("h")
e = B("e")

k.u = j
k.z = n
k.w = n
k.p = e
k.y = e
k.s = h
k.t = f
g.z = h
g.v = h
g.y = f
g.q = l
g.t = n
g.r = j
l.u = j
l.r = j
l.w = j
l.q = n
l.s = f
l.y = k
j.t = f
j.u = f
n.t = j
m.q = l
m.p = j
m.z = e
f.t = g
h.q = l
h.p = j
h.z = g
e.z = m
e.y = f
e.q = l
e.t = n
e.v = h
e.r = j
assert h.q.y.y.q.txt == "
class A:
    def __init__(self, txt: str):
        self.u: D = None
        self.z: E = None
        self.p: B = None
        self.s: F = None
        self.t: G = None
        self.w: E = None
        self.y: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: F = None
        self.y: G = None
        self.q: C = None
        self.t: E = None
        self.v: F = None
        self.r: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.q: E = None
        self.r: D = None
        self.s: G = None
        self.y: A = None
        self.w: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: B = None
        self.txt = txt

k = A("k")
g = B("g")
l = C("l")
j = D("j")
n = E("n")
m = F("m")
f = G("f")
h = F("h")
e = B("e")

k.u = j
k.z = n
k.w = n
k.p = e
k.y = e
k.s = h
k.t = f
g.z = h
g.v = h
g.y = f
g.q = l
g.t = n
g.r = j
l.u = j
l.r = j
l.w = j
l.q = n
l.s = f
l.y = k
j.t = f
j.u = f
n.t = j
m.q = l
m.p = j
m.z = e
f.t = g
h.q = l
h.p = j
h.z = g
e.z = m
e.y = f
e.q = l
e.t = n
e.v = h
e.r = j
assert h.q.y.y.q.txt == "l"