class A:
    def __init__(self, txt: str):
        self.v: E = None
        self.x: J = None
        self.txt = txt

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

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.q: I = None
        self.o: B = None
        self.s: E = None
        self.y: D = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.r: E = None
        self.o: E = None
        self.p: A = None
        self.txt = txt

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

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

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

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.q: I = None
        self.o: B = None
        self.s: E = None
        self.y: D = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.r: E = None
        self.o: E = None
        self.p: A = None
        self.txt = txt

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

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