So in this task we should know which value will be in the eax register after completing main function.
To do so we can just disassemble main thru gdb and set breakpoint at the last instruction of main.
Let’s go:
I use this script for gdb.
I will use gdb-pwndbg
so we can just break at +21
in this output we can already see EAX value (RAX cause 64 bit)
So flag is picoCTF{549698}