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

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

class C:
    def __init__(self, txt: str):
        self.r: E = None
        self.z: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.z: G = None
        self.u: H = None
        self.t: C = None
        self.y: F = None
        self.w: I = None
        self.s: I = None
        self.x: G = None
        self.o: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: C = None
        self.y: H = None
        self.z: C = None
        self.q: C = None
        self.v: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: B = None
        self.x: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.x: F = None
        self.txt = txt

g = A("g")
i = B("i")
n = C("n")
h = D("h")
l = E("l")
k = F("k")
b = G("b")
a = H("a")
c = I("c")
j = D("j")

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

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

class C:
    def __init__(self, txt: str):
        self.r: E = None
        self.z: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.z: G = None
        self.u: H = None
        self.t: C = None
        self.y: F = None
        self.w: I = None
        self.s: I = None
        self.x: G = None
        self.o: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: C = None
        self.y: H = None
        self.z: C = None
        self.q: C = None
        self.v: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: B = None
        self.x: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.x: F = None
        self.txt = txt

g = A("g")
i = B("i")
n = C("n")
h = D("h")
l = E("l")
k = F("k")
b = G("b")
a = H("a")
c = I("c")
j = D("j")

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