class A:
    def __init__(self, txt: str):
        self.p: G = None
        self.w: H = None
        self.u: J = None
        self.s: F = None
        self.z: H = None
        self.v: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.t: J = None
        self.r: H = None
        self.w: A = None
        self.u: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.z: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: A = None
        self.z: J = None
        self.o: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: B = None
        self.v: B = None
        self.u: H = None
        self.y: A = None
        self.r: D = None
        self.q: C = None
        self.z: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: F = None
        self.t: F = None
        self.z: C = None
        self.q: C = None
        self.txt = txt

e = A("e")
c = B("c")
l = C("l")
k = D("k")
d = E("d")
b = F("b")
m = G("m")
n = H("n")
j = I("j")
h = J("h")

e.p = m
e.v = m
e.w = n
e.z = n
e.u = h
e.s = b
c.o = m
c.u = m
c.y = b
c.z = k
c.v = n
c.p = e
c.t = l
l.p = b
l.t = h
l.r = n
l.w = e
l.u = c
k.v = b
k.z = d
d.y = l
d.s = j
d.t = b
b.v = e
b.z = h
b.o = l
m.q = e
m.w = e
m.y = h
m.t = n
m.v = j
m.x = c
m.s = l
n.q = l
j.x = c
j.v = c
j.u = n
j.z = n
j.y = e
j.r = k
j.q = l
h.v = b
h.t = b
h.z = l
h.q = l
assert c.y.v.u.q.r.q.u.txt == "
class A:
    def __init__(self, txt: str):
        self.p: G = None
        self.w: H = None
        self.u: J = None
        self.s: F = None
        self.z: H = None
        self.v: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.t: J = None
        self.r: H = None
        self.w: A = None
        self.u: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.z: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: A = None
        self.z: J = None
        self.o: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: B = None
        self.v: B = None
        self.u: H = None
        self.y: A = None
        self.r: D = None
        self.q: C = None
        self.z: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: F = None
        self.t: F = None
        self.z: C = None
        self.q: C = None
        self.txt = txt

e = A("e")
c = B("c")
l = C("l")
k = D("k")
d = E("d")
b = F("b")
m = G("m")
n = H("n")
j = I("j")
h = J("h")

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