class A:
    def __init__(self, txt: str):
        self.u: B = None
        self.p: A = None
        self.z: F = None
        self.w: C = None
        self.o: A = None
        self.x: G = None
        self.t: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: A = None
        self.p: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: B = None
        self.o: B = None
        self.t: B = None
        self.y: C = None
        self.txt = txt

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: A = None
        self.p: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: B = None
        self.o: B = None
        self.t: B = None
        self.y: C = None
        self.txt = txt

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

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

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

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

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