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

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

class C:
    def __init__(self, txt: str):
        self.z: J = None
        self.q: B = None
        self.p: J = None
        self.s: F = None
        self.x: B = None
        self.r: G = None
        self.u: B = None
        self.o: J = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.u: J = None
        self.v: A = None
        self.s: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: J = None
        self.t: B = None
        self.v: G = None
        self.y: D = None
        self.r: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: H = None
        self.o: A = None
        self.s: I = None
        self.u: E = None
        self.y: B = None
        self.q: I = None
        self.w: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: J = None
        self.q: B = None
        self.p: J = None
        self.s: F = None
        self.x: B = None
        self.r: G = None
        self.u: B = None
        self.o: J = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.u: J = None
        self.v: A = None
        self.s: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: J = None
        self.t: B = None
        self.v: G = None
        self.y: D = None
        self.r: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: H = None
        self.o: A = None
        self.s: I = None
        self.u: E = None
        self.y: B = None
        self.q: I = None
        self.w: F = None
        self.txt = txt

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

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