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

class B:
    def __init__(self, txt: str):
        self.x: E = None
        self.p: F = None
        self.t: D = None
        self.o: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: F = None
        self.x: B = None
        self.q: B = None
        self.y: B = None
        self.v: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: C = None
        self.v: E = None
        self.t: F = None
        self.y: G = None
        self.x: C = None
        self.r: A = None
        self.p: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: F = None
        self.t: G = None
        self.q: F = None
        self.p: C = None
        self.u: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: C = None
        self.o: C = None
        self.r: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: B = None
        self.w: C = None
        self.p: B = None
        self.r: D = None
        self.y: D = None
        self.q: D = None
        self.u: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: E = None
        self.p: F = None
        self.t: D = None
        self.o: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: F = None
        self.x: B = None
        self.q: B = None
        self.y: B = None
        self.v: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: C = None
        self.v: E = None
        self.t: F = None
        self.y: G = None
        self.x: C = None
        self.r: A = None
        self.p: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: F = None
        self.t: G = None
        self.q: F = None
        self.p: C = None
        self.u: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: C = None
        self.o: C = None
        self.r: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: B = None
        self.w: C = None
        self.p: B = None
        self.r: D = None
        self.y: D = None
        self.q: D = None
        self.u: F = None
        self.txt = txt

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

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