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

class B:
    def __init__(self, txt: str):
        self.x: D = None
        self.r: E = None
        self.p: A = None
        self.z: E = None
        self.q: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.o: C = None
        self.u: E = None
        self.v: A = None
        self.p: C = None
        self.y: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.w: E = None
        self.t: C = None
        self.o: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: D = None
        self.r: E = None
        self.p: A = None
        self.z: E = None
        self.q: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.o: C = None
        self.u: E = None
        self.v: A = None
        self.p: C = None
        self.y: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.w: E = None
        self.t: C = None
        self.o: E = None
        self.txt = txt

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

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