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

class B:
    def __init__(self, txt: str):
        self.y: G = None
        self.q: H = None
        self.w: E = None
        self.v: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.s: I = None
        self.w: H = None
        self.u: H = None
        self.t: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: A = None
        self.s: A = None
        self.z: B = None
        self.q: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: D = None
        self.t: A = None
        self.o: B = None
        self.q: D = None
        self.y: E = None
        self.z: E = None
        self.x: A = None
        self.s: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: A = None
        self.t: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.x: F = None
        self.v: B = None
        self.w: A = None
        self.s: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: G = None
        self.q: H = None
        self.w: E = None
        self.v: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.s: I = None
        self.w: H = None
        self.u: H = None
        self.t: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: A = None
        self.s: A = None
        self.z: B = None
        self.q: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: D = None
        self.t: A = None
        self.o: B = None
        self.q: D = None
        self.y: E = None
        self.z: E = None
        self.x: A = None
        self.s: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: A = None
        self.t: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.x: F = None
        self.v: B = None
        self.w: A = None
        self.s: A = None
        self.txt = txt

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

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