class A:
    def __init__(self, txt: str):
        self.t: G = None
        self.v: B = None
        self.r: G = None
        self.p: H = None
        self.o: H = None
        self.z: D = None
        self.x: G = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.r: J = None
        self.w: E = None
        self.o: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: J = None
        self.u: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: H = None
        self.q: E = None
        self.s: A = None
        self.r: J = None
        self.x: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: B = None
        self.o: G = None
        self.z: F = None
        self.w: A = None
        self.v: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: J = None
        self.s: C = None
        self.v: C = None
        self.u: D = None
        self.q: A = None
        self.r: B = None
        self.o: J = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.r: J = None
        self.w: E = None
        self.o: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: J = None
        self.u: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: H = None
        self.q: E = None
        self.s: A = None
        self.r: J = None
        self.x: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: B = None
        self.o: G = None
        self.z: F = None
        self.w: A = None
        self.v: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: J = None
        self.s: C = None
        self.v: C = None
        self.u: D = None
        self.q: A = None
        self.r: B = None
        self.o: J = None
        self.txt = txt

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

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

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