class A:
    def __init__(self, txt: str):
        self.t: B = None
        self.o: F = None
        self.w: I = None
        self.x: E = None
        self.z: J = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.u: G = None
        self.o: A = None
        self.y: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: G = None
        self.z: G = None
        self.t: B = None
        self.r: J = None
        self.s: I = None
        self.w: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: I = None
        self.r: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: F = None
        self.r: J = None
        self.v: C = None
        self.p: F = None
        self.y: C = None
        self.x: E = None
        self.s: J = None
        self.q: C = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.u: G = None
        self.o: A = None
        self.y: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: G = None
        self.z: G = None
        self.t: B = None
        self.r: J = None
        self.s: I = None
        self.w: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: I = None
        self.r: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: F = None
        self.r: J = None
        self.v: C = None
        self.p: F = None
        self.y: C = None
        self.x: E = None
        self.s: J = None
        self.q: C = None
        self.txt = txt

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

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

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