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

class B:
    def __init__(self, txt: str):
        self.y: G = None
        self.r: D = None
        self.v: E = None
        self.q: I = None
        self.z: J = None
        self.o: C = None
        self.w: G = None
        self.u: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: G = None
        self.o: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: F = None
        self.x: G = None
        self.y: D = None
        self.z: J = None
        self.r: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: J = None
        self.q: H = None
        self.t: E = None
        self.w: I = None
        self.y: F = None
        self.r: H = None
        self.o: F = None
        self.p: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.w: C = None
        self.u: D = None
        self.r: D = None
        self.t: E = None
        self.o: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: D = None
        self.q: H = None
        self.r: D = None
        self.p: H = None
        self.txt = txt

k = A("k")
a = B("a")
i = C("i")
c = D("c")
j = E("j")
e = F("e")
m = G("m")
l = H("l")
f = I("f")
b = J("b")

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

class B:
    def __init__(self, txt: str):
        self.y: G = None
        self.r: D = None
        self.v: E = None
        self.q: I = None
        self.z: J = None
        self.o: C = None
        self.w: G = None
        self.u: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: G = None
        self.o: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: F = None
        self.x: G = None
        self.y: D = None
        self.z: J = None
        self.r: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: J = None
        self.q: H = None
        self.t: E = None
        self.w: I = None
        self.y: F = None
        self.r: H = None
        self.o: F = None
        self.p: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.w: C = None
        self.u: D = None
        self.r: D = None
        self.t: E = None
        self.o: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: D = None
        self.q: H = None
        self.r: D = None
        self.p: H = None
        self.txt = txt

k = A("k")
a = B("a")
i = C("i")
c = D("c")
j = E("j")
e = F("e")
m = G("m")
l = H("l")
f = I("f")
b = J("b")

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