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

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

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

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

class E:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: A = None
        self.u: C = None
        self.r: H = None
        self.z: A = None
        self.q: G = None
        self.s: A = None
        self.y: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: I = None
        self.q: C = None
        self.y: A = None
        self.x: G = None
        self.r: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.p: I = None
        self.x: A = None
        self.w: D = None
        self.r: C = None
        self.q: I = None
        self.t: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: C = None
        self.p: A = None
        self.r: E = None
        self.s: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: A = None
        self.p: F = None
        self.s: A = None
        self.u: A = None
        self.r: G = None
        self.z: F = None
        self.o: B = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: A = None
        self.u: C = None
        self.r: H = None
        self.z: A = None
        self.q: G = None
        self.s: A = None
        self.y: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: I = None
        self.q: C = None
        self.y: A = None
        self.x: G = None
        self.r: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.p: I = None
        self.x: A = None
        self.w: D = None
        self.r: C = None
        self.q: I = None
        self.t: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: C = None
        self.p: A = None
        self.r: E = None
        self.s: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: A = None
        self.p: F = None
        self.s: A = None
        self.u: A = None
        self.r: G = None
        self.z: F = None
        self.o: B = None
        self.txt = txt

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

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