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

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

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

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.z: B = None
        self.w: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: G = None
        self.q: C = None
        self.s: C = None
        self.z: A = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.z: B = None
        self.w: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: G = None
        self.q: C = None
        self.s: C = None
        self.z: A = None
        self.txt = txt

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

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

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