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

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

class C:
    def __init__(self, txt: str):
        self.s: H = None
        self.p: J = None
        self.x: J = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: D = None
        self.txt = txt

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

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

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: H = None
        self.p: J = None
        self.x: J = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: D = None
        self.txt = txt

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

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

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

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

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

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

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