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

class B:
    def __init__(self, txt: str):
        self.w: F = None
        self.s: E = None
        self.y: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.x: B = None
        self.r: A = None
        self.t: F = None
        self.q: E = None
        self.z: C = None
        self.p: E = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: B = None
        self.q: F = None
        self.txt = txt

j = A("j")
d = B("d")
m = C("m")
c = D("c")
l = E("l")
a = F("a")
i = G("i")
e = F("e")
k = E("k")
h = D("h")

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

class B:
    def __init__(self, txt: str):
        self.w: F = None
        self.s: E = None
        self.y: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.x: B = None
        self.r: A = None
        self.t: F = None
        self.q: E = None
        self.z: C = None
        self.p: E = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: B = None
        self.q: F = None
        self.txt = txt

j = A("j")
d = B("d")
m = C("m")
c = D("c")
l = E("l")
a = F("a")
i = G("i")
e = F("e")
k = E("k")
h = D("h")

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