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

class B:
    def __init__(self, txt: str):
        self.q: D = None
        self.r: D = None
        self.z: A = None
        self.s: I = None
        self.u: G = None
        self.v: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: I = None
        self.p: G = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.y: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: D = None
        self.u: H = None
        self.s: B = None
        self.q: D = None
        self.x: H = None
        self.r: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: C = None
        self.s: D = None
        self.w: D = None
        self.o: F = None
        self.p: E = None
        self.r: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: D = None
        self.r: D = None
        self.z: A = None
        self.s: I = None
        self.u: G = None
        self.v: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: I = None
        self.p: G = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.y: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: D = None
        self.u: H = None
        self.s: B = None
        self.q: D = None
        self.x: H = None
        self.r: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: C = None
        self.s: D = None
        self.w: D = None
        self.o: F = None
        self.p: E = None
        self.r: C = None
        self.txt = txt

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

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