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

class B:
    def __init__(self, txt: str):
        self.o: I = None
        self.z: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.s: I = None
        self.t: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.w: C = None
        self.p: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.s: D = None
        self.t: D = None
        self.u: G = None
        self.x: C = None
        self.p: C = None
        self.r: J = None
        self.q: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: H = None
        self.x: C = None
        self.w: H = None
        self.o: G = None
        self.r: F = None
        self.y: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: C = None
        self.r: C = None
        self.w: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: I = None
        self.z: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.s: I = None
        self.t: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.w: C = None
        self.p: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.s: D = None
        self.t: D = None
        self.u: G = None
        self.x: C = None
        self.p: C = None
        self.r: J = None
        self.q: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: H = None
        self.x: C = None
        self.w: H = None
        self.o: G = None
        self.r: F = None
        self.y: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: C = None
        self.r: C = None
        self.w: B = None
        self.txt = txt

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

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