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

class B:
    def __init__(self, txt: str):
        self.t: J = None
        self.s: G = None
        self.p: I = None
        self.y: A = None
        self.z: A = None
        self.o: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.z: F = None
        self.t: B = None
        self.v: I = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.r: H = None
        self.u: H = None
        self.y: D = None
        self.o: G = None
        self.q: C = None
        self.z: D = None
        self.w: F = None
        self.p: A = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: J = None
        self.s: G = None
        self.p: I = None
        self.y: A = None
        self.z: A = None
        self.o: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.z: F = None
        self.t: B = None
        self.v: I = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.r: H = None
        self.u: H = None
        self.y: D = None
        self.o: G = None
        self.q: C = None
        self.z: D = None
        self.w: F = None
        self.p: A = None
        self.txt = txt

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

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

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