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

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: I = None
        self.y: H = None
        self.t: C = None
        self.q: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: A = None
        self.s: A = None
        self.v: I = None
        self.x: H = None
        self.z: B = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.w: E = None
        self.s: J = None
        self.r: F = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: I = None
        self.y: H = None
        self.t: C = None
        self.q: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: A = None
        self.s: A = None
        self.v: I = None
        self.x: H = None
        self.z: B = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.w: E = None
        self.s: J = None
        self.r: F = None
        self.txt = txt

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

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

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