class A:
    def __init__(self, txt: str):
        self.r: H = None
        self.u: E = None
        self.y: E = None
        self.s: C = None
        self.x: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: C = None
        self.p: A = None
        self.y: E = None
        self.v: F = None
        self.x: F = None
        self.q: C = None
        self.r: F = None
        self.u: D = None
        self.o: I = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.p: H = None
        self.u: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.o: J = None
        self.t: D = None
        self.u: C = None
        self.v: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: D = None
        self.z: F = None
        self.p: E = None
        self.y: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: F = None
        self.txt = txt

k = A("k")
a = B("a")
b = C("b")
g = D("g")
d = E("d")
j = F("j")
i = G("i")
c = H("c")
f = I("f")
h = J("h")

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

class B:
    def __init__(self, txt: str):
        self.w: C = None
        self.p: A = None
        self.y: E = None
        self.v: F = None
        self.x: F = None
        self.q: C = None
        self.r: F = None
        self.u: D = None
        self.o: I = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.p: H = None
        self.u: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.o: J = None
        self.t: D = None
        self.u: C = None
        self.v: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: D = None
        self.z: F = None
        self.p: E = None
        self.y: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: F = None
        self.txt = txt

k = A("k")
a = B("a")
b = C("b")
g = D("g")
d = E("d")
j = F("j")
i = G("i")
c = H("c")
f = I("f")
h = J("h")

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