Most problems follow predictable input patterns: Single value: Just input() or int(input()). Multiple values on one line: input().split() or map(int, input().split()). Multiple lines: Call input() multiple times, often in a loop.
First line gives count: Common pattern where line says how many items follow. Read that first, then loop that many times. Recognizing these patterns helps you write input parsing quickly. Soon it becomes automatic.