class A:
    def __init__(self, txt: str):
        self.y: B = None
        self.r: I = None
        self.t: D = None
        self.w: G = None
        self.u: G = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.t: H = None
        self.u: B = None
        self.x: H = None
        self.w: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: D = None
        self.x: G = None
        self.y: G = None
        self.s: G = None
        self.q: G = None
        self.t: H = None
        self.z: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.t: D = None
        self.s: D = None
        self.w: H = None
        self.u: D = None
        self.o: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: B = None
        self.p: A = None
        self.r: F = None
        self.z: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.t: H = None
        self.u: B = None
        self.x: H = None
        self.w: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: D = None
        self.x: G = None
        self.y: G = None
        self.s: G = None
        self.q: G = None
        self.t: H = None
        self.z: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.t: D = None
        self.s: D = None
        self.w: H = None
        self.u: D = None
        self.o: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: B = None
        self.p: A = None
        self.r: F = None
        self.z: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

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

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

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