class A:
    def __init__(self, txt: str):
        self.z: C = None
        self.p: G = None
        self.v: G = None
        self.r: E = None
        self.o: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: A = None
        self.z: A = None
        self.r: A = None
        self.o: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: D = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.y: A = None
        self.z: A = None
        self.r: A = None
        self.o: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: D = None
        self.txt = txt

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

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

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

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