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

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

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

class D:
    def __init__(self, txt: str):
        self.z: A = None
        self.x: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: H = None
        self.p: G = None
        self.v: H = None
        self.x: C = None
        self.y: B = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.y: A = None
        self.u: E = None
        self.t: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: I = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.z: A = None
        self.x: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: H = None
        self.p: G = None
        self.v: H = None
        self.x: C = None
        self.y: B = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.y: A = None
        self.u: E = None
        self.t: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: I = None
        self.txt = txt

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

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