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

class B:
    def __init__(self, txt: str):
        self.v: B = None
        self.z: C = None
        self.q: B = None
        self.t: F = None
        self.r: B = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: A = None
        self.o: C = None
        self.s: D = None
        self.q: E = None
        self.r: C = None
        self.t: C = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.v: C = None
        self.x: C = None
        self.u: C = None
        self.q: F = None
        self.txt = txt

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

g = A("g")
f = B("f")
a = C("a")
j = D("j")
b = E("b")
n = F("n")
k = B("k")
e = C("e")
c = D("c")

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

class B:
    def __init__(self, txt: str):
        self.v: B = None
        self.z: C = None
        self.q: B = None
        self.t: F = None
        self.r: B = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: A = None
        self.o: C = None
        self.s: D = None
        self.q: E = None
        self.r: C = None
        self.t: C = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.v: C = None
        self.x: C = None
        self.u: C = None
        self.q: F = None
        self.txt = txt

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

g = A("g")
f = B("f")
a = C("a")
j = D("j")
b = E("b")
n = F("n")
k = B("k")
e = C("e")
c = D("c")

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