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

class B:
    def __init__(self, txt: str):
        self.r: G = None
        self.t: C = None
        self.z: G = None
        self.s: G = None
        self.o: A = None
        self.w: C = None
        self.p: B = None
        self.v: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: B = None
        self.s: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: B = None
        self.s: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: H = None
        self.t: G = None
        self.r: C = None
        self.u: C = None
        self.z: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: G = None
        self.t: C = None
        self.z: G = None
        self.s: G = None
        self.o: A = None
        self.w: C = None
        self.p: B = None
        self.v: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: B = None
        self.s: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: B = None
        self.s: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: H = None
        self.t: G = None
        self.r: C = None
        self.u: C = None
        self.z: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

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

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